import React, {useState, useEffect} from 'react'; import {Redirect, Route ,Switch,useHistory, useRouteMatch, match as MatchType, Link as RouterLink} from 'react-router-dom'; import { LoadingCircle } from '../../component/loading'; import { Link, Paper, makeStyles, Theme, Box, Typography } from '@material-ui/core'; import { Content, makeThumbnailUrl } from '../../accessor/contents'; type MangaType = "manga"|"artist cg"|"donjinshi"|"western" export type PresentableTag = { artist:string[], group: string[], series: string[], type: MangaType, character: string[], tags: string[], } export const MangaReader = (props:{content:Content})=>{ const additional = props.content.additional; if(!('page' in additional)){ console.error("invalid content : page read fail : "+ JSON.stringify(additional)); return Error. DB error. page restriction } const page:number = additional['page'] as number; return (
{[...Array(page).keys()].map(x=>())}
); } export default MangaReader;