import React from 'react' import type { PropsWithChildren } from 'react' import { Flex, Box } from 'theme-ui' import { ItemInfo } from './ItemInfo' import MinicartDrawerImage from './Image' import type { Item } from '../../types' import type { Props } from '.' export const Items = ({ children, items, variant, numberFormat, formatMessage, removeItem, updateItem, }: PropsWithChildren> & { formatMessage: (obj: { id: string }) => string }) => ( {items.map((item) => ( {children} ))} )