export interface ScheduleConflict { userId: number; type: 'meeting' | 'calendar_event' | 'important_todo'; refId: number; title: string; startAt: string; endAt: string | null; } const TYPE_LABELS: Record = { meeting: 'ミーティング', calendar_event: 'カレンダーイベント', important_todo: '期限の近い重要タスク', }; export function ConflictWarning({ conflicts, }: { conflicts: ScheduleConflict[]; }) { if (conflicts.length === 0) { return (

スケジュールの重複はありません。

); } return (

スケジュールの重複があります(作成は完了しています):

); }