/** * @file app/(app)/tasks/task/TaskOptions.tsx * @description Component for selecting priority and status using centralized type definitions. */ import { TaskPriority, TaskStatus, COLUMNS } from "@/lib/types/task"; /** * Properties for the TaskOptions component. * * @interface TaskOptionsProps * @property {TaskPriority} priority - The currently selected task priority level. * @property {(val: TaskPriority) => void} setPriority - Callback function to update the task priority. * @property {TaskStatus} status - The currently selected task status. * @property {(val: TaskStatus) => void} setStatus - Callback function to update the task status. */ interface TaskOptionsProps { priority: TaskPriority; setPriority: (val: TaskPriority) => void; status: TaskStatus; setStatus: (val: TaskStatus) => void; } /** * Renders form option selectors for task priority and initial status dropdowns. * * @param {TaskOptionsProps} props - The component props. * @returns {JSX.Element} The rendered task options component. */ export default function TaskOptions({ priority, setPriority, status, setStatus, }: TaskOptionsProps) { return (