interface PriceBoxesProps { products: { title: string; price: string }[]; totalWidth: number; } const PriceBoxes = ({ products, totalWidth }: PriceBoxesProps) => { return (
{products.map(({ title, price }) => ( ))}
); }; export default PriceBoxes; interface PriceBoxProps { title: string; price: string; } const PriceBox = ({ title, price }: PriceBoxProps) => { return (

{title}

{price}

); };