import { Gantt } from '@hanzo/ui'
Four tasks, each a labelled progress bar between its start and end date.
export function Default() {return (<YStack width="100%" maxW={720}><Gantt tasks={project} /></YStack>)}
With no tasks the card shows a placeholder instead of an empty list.
export function Empty() {return (<YStack width="100%" maxW={720}><Gantt tasks={[]} /></YStack>)}
One row, midway through, so the fill sits at half width.
export function InProgress() {return (<YStack width="100%" maxW={720}><Gantt tasks={[ { id: '1', name: 'Migrate database', start: new Date(2024, 5, 1), end: new Date(2024, 5, 10), progress: 50 }, ]} /></YStack>)}
export interface GanttTask {id: stringname: stringstart: Dateend: Date/** 0–100. Defaults to 0. */progress?: number}
export type GanttProps = ComponentProps<typeof Frame> & {tasks?: GanttTask[]}