import { GetStaticProps } from "next"; import SubPanel from "components/Panels/SubPanel"; import ContentPanel from "components/Panels/ContentPanel"; import LibraryItemComponent from "components/Library/LibraryItemComponent"; import { applyCustomAppProps } from "pages/_app"; import { GetLibraryItemsPreviewQuery } from "graphql/operations-types"; import { getLibraryItemsPreview } from "graphql/operations"; type Props = { libraryItems: GetLibraryItemsPreviewQuery; }; applyCustomAppProps(Library, { useSubPanel: true, useContentPanel: true, }); export default function Library(props: Props): JSX.Element { console.log(props); return ( <>

Library

A comprehensive list of all Yokoverse’s side materials (books, novellas, artbooks, stage plays, manga, drama CDs, and comics). For each, we provide photos and/or scans of the content, information about what it is, when and how it was released, size, initial price…


{props.libraryItems.libraryItems?.data.map((item) => ( ))} ); } export const getStaticProps: GetStaticProps = async (context) => { return { props: { libraryItems: await getLibraryItemsPreview({language_code: context.locale}), }, }; };