import { useMemo } from 'react'; import { getData } from '../data'; import { Gantt } from '../../src/'; import AvatarCell from '../custom/AvatarCell.jsx'; import NameAndDateCell from '../custom/NameAndDateCell.jsx'; import AddTaskCell from '../custom/AddTaskCell.jsx'; function GanttGrid({ skinSettings }) { const columns = useMemo( () => [ { id: 'text', header: 'Task', width: 220, cell: NameAndDateCell }, { id: 'assigned', header: 'Assigned', width: 160, cell: AvatarCell }, { id: 'add-task', header: { cell: AddTaskCell }, align: 'center', width: 80, }, ], [], ); const data = useMemo(() => getData(), []); return ( ); } export default GanttGrid;