{content.attributes.title[0].title}
++ {content.attributes.range[0].__typename === + "ComponentRangePageRange" + ? content.attributes.range[0].starting_page + : ""} +
+{content.attributes.type.data.attributes.slug}
+diff --git a/src/components/Library/LibraryItemComponent.tsx b/src/components/Library/LibraryItemComponent.tsx index a020f90..74c52a0 100644 --- a/src/components/Library/LibraryItemComponent.tsx +++ b/src/components/Library/LibraryItemComponent.tsx @@ -1,6 +1,7 @@ import Link from "next/link"; import { GetLibraryItemsPreviewQuery } from "graphql/operations-types"; import { getAssetURL } from "queries/helpers"; +import Image from "next/image"; export type LibraryItemComponentProps = { item: GetLibraryItemsPreviewQuery["libraryItems"]["data"][number]; @@ -26,16 +27,18 @@ export default function LibraryItemComponent(
Subitem of
+ + + +{libraryItem.attributes.descriptions[0].description}
+ ) : ( + "" + )} +Type
+Release date
+Price
++ {content.attributes.range[0].__typename === + "ComponentRangePageRange" + ? content.attributes.range[0].starting_page + : ""} +
+{content.attributes.type.data.attributes.slug}
+