import { motion } from 'framer-motion'; import { useClientTasks } from '../../../../shared/hooks/useClient360'; import styles from './Tasks.module.css'; /** * Tasks Tab * Timeline: TODAY → UPCOMING → COMPLETED * Tasks are AI-generated or manually created reminders. * "Done" and "Snooze" are the only actions — no task configuration UI. */ interface TasksTabProps { personId: string; } export function TasksTab({ personId }: TasksTabProps) { const { tasks, isLoading, markDone, snooze } = useClientTasks(personId); const today = tasks.filter(t => t.group === 'today'); const upcoming = tasks.filter(t => t.group === 'upcoming'); const completed = tasks.filter(t => t.group === 'completed'); if (isLoading) { return (
No tasks yet — create one to stay on track.
)}