/** * @file tasks/task/TaskHeader.tsx * @description Component rendering the top title header and action buttons for the task view. */ import { Sparkles } from "lucide-react"; /** * Renders the task management header section featuring dynamic title and subtitle text based on edit mode. * * @param {boolean} [isEditMode] - Flag indicating whether the header is displayed in edit mode or creation mode. * @returns {JSX.Element} The rendered task header component. */ export default function TaskHeader({ isEditMode }: { isEditMode?: boolean }) { return (
Task Management

{isEditMode ? "Edit Task" : "Create New Task"}

{isEditMode ? "Update your existing task details and assignees." : "Add a new task to your workspace and assign priorities."}

); }