import React from 'react' import { Column } from '../../atoms/Column' import { Card } from '../CartDissert' interface ListProps { data: any editOneItem: () => void list: { cards: any[] id: any } listID: any loadingEditSubOptional: boolean removeOneItem: () => void selectedItem: { id: string } setData: () => void } export const List: React.FC = ({ list = { id: '', cards: [] }, setData = () => { }, listID = '', loadingEditSubOptional = false, data, selectedItem = { id: '' }, removeOneItem = () => { }, editOneItem = () => { } }) => { return ( {list?.cards?.map((card, index) => { return ( ) })} ) }