import React from 'react' import { Grid } from 'theme-ui' import type { ComponentPropsWithoutRef, PropsWithChildren, ComponentType, } from 'react' export interface Product { id: string } export type ProductSummary = ComponentType<{ product: T position: number }> interface Props extends ComponentPropsWithoutRef { items: T[] page: number pageSize: number pageSizes?: number[] variant: string ProductSummary: ProductSummary } const ShelfPage = ({ items, page, pageSize, pageSizes, variant, ProductSummary, ...props }: PropsWithChildren>) => ( {items.map((item, index) => ( ))} ) export default ShelfPage