Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
raw
history blame contribute delete
841 Bytes
import React from 'react';
import { MdAdd } from 'react-icons/md';
import { Container } from './styles';
import Card from '../Card';
export default function List({ data, index: listIndex }) {
return (
<Container done={data.done}>
<header>
<h2>{data.title}</h2>
{data.creatable && (
<button type="button">
<MdAdd size={24} color='#FFF' />
</button>
)}
</header>
<ul>
{
data.cards.map((card, index) => <Card
key={card.id}
listIndex={listIndex}
index={index}
data={card}/>
)
}
</ul>
</Container>
);
}