import React from "react"; // react-beautiful-dnd import { DraggableProvided } from "react-beautiful-dnd"; // icons import { ArrowsPointingInIcon, ArrowsPointingOutIcon, EllipsisHorizontalIcon, PlusIcon, } from "@heroicons/react/24/outline"; // helpers import { addSpaceIfCamelCase } from "helpers/string.helper"; // types import { IIssue, NestedKeyOf } from "types"; type Props = { isCollapsed: boolean; setIsCollapsed: React.Dispatch>; groupedByIssues: { [key: string]: IIssue[]; }; selectedGroup: NestedKeyOf | null; groupTitle: string; createdBy: string | null; bgColor?: string; addIssueToState: () => void; provided?: DraggableProvided; }; const BoardHeader: React.FC = ({ isCollapsed, setIsCollapsed, provided, groupedByIssues, selectedGroup, groupTitle, createdBy, bgColor, addIssueToState, }) => (
{provided && ( )}

{groupTitle === null || groupTitle === "null" ? "None" : createdBy ? createdBy : addSpaceIfCamelCase(groupTitle)}

{groupedByIssues[groupTitle].length}
); export default BoardHeader;