"use client";
import { Box, GanttChart, type GanttTask } from '@photonix/ultimate';
const tasks: GanttTask[] = [
{ id: 'g1', name: 'Project planning', startDate: new Date(2026, 5, 1), endDate: new Date(2026, 5, 5), type: 'work', progress: 100, groupName: 'Phase 1' },
{ id: 'g2', name: 'Design phase', startDate: new Date(2026, 5, 3), endDate: new Date(2026, 5, 10), type: 'work', progress: 60, groupName: 'Phase 1' },
{ id: 'g3', name: 'Development', startDate: new Date(2026, 5, 8), endDate: new Date(2026, 5, 20), type: 'work', progress: 30, groupName: 'Phase 2' },
{ id: 'g4', name: 'Client meeting', startDate: new Date(2026, 5, 12), endDate: new Date(2026, 5, 12), type: 'personal', groupName: 'Phase 2' },
{ id: 'g5', name: 'Testing', startDate: new Date(2026, 5, 18), endDate: new Date(2026, 5, 25), type: 'work', groupName: 'Phase 3' },
];
export default function GanttChartGroupedTasksExample() {
return (
<Box w="100%">
<GanttChart tasks={tasks} />
</Box>
);
}