import React, { FC } from "react"; import { observer } from "mobx-react-lite"; import { Circle, ChevronDown, ChevronUp } from "lucide-react"; import { TIssueKanbanFilters } from "@plane/types"; // mobx interface IHeaderSubGroupByCard { icon?: React.ReactNode; title: string; count: number; column_id: string; kanbanFilters: TIssueKanbanFilters; handleKanbanFilters: (toggle: "group_by" | "sub_group_by", value: string) => void; } export const HeaderSubGroupByCard: FC = observer((props) => { const { icon, title, count, column_id, kanbanFilters, handleKanbanFilters } = props; return (
handleKanbanFilters("sub_group_by", column_id)} >
{kanbanFilters?.sub_group_by.includes(column_id) ? ( ) : ( )}
{icon ? icon : }
{title}
{count || 0}
); });