/** * @file tasks/task/TaskAssignees.tsx * @description Component for selecting task assignees. */ /** * Properties for the TaskAssignees component. * * @interface TaskAssigneesProps * @property {Array<{ id: string; email: string }>} users - The list of available users to assign. * @property {string[]} selectedAssignees - An array containing the IDs of currently selected assignees. * @property {(userId: string) => void} onToggle - Callback function triggered when a user selection is toggled. */ interface TaskAssigneesProps { users: { id: string; email: string }[]; selectedAssignees: string[]; onToggle: (userId: string) => void; } /** * Renders an interactive list of users allowing selection or deselection of assignees for a task. * * @param {TaskAssigneesProps} props - The component props. * @returns {JSX.Element} The rendered task assignees selector component. */ export default function TaskAssignees({ users, selectedAssignees, onToggle, }: TaskAssigneesProps) { return (