/** * @file app/(app)/dashboard/header/Header.tsx * @description Client component rendering the dashboard top header section, including workspace info, deletion drop zones, task creation buttons, and trash links. */ "use client"; import { Plus, Sparkles } from "lucide-react"; import TrashLink from "./TrashLink"; import { useState } from "react"; import ActionDropZones from "./ActionDropZones"; import { ActionButton } from "@/app/components/ui/buttons/ActionButton"; /** * Renders the dashboard header section featuring title text, drop zones, * and conditionally displays the new task action button and trash link based on the drag state. * * @param {Object} props - The component props. * @param {(taskId: string) => void} props.onTaskDelete - Callback function triggered when a task is dropped into the delete zone. * @returns {JSX.Element} The rendered dashboard header component. */ export default function Header({ onTaskDelete, }: { onTaskDelete: (taskId: string) => void; }) { const [isDraggingActive, setIsDraggingActive] = useState(false); return (
Manage your tasks and keep track of your progress.