interface Props { type: 'goal' | 'course' onSaveCourse?: (title: string, date: Date) => void onSaveGoal?: (text: string) => void }