import React from "react"; // lucide icons import { Circle, ChevronDown, ChevronUp } from "lucide-react"; // mobx import { observer } from "mobx-react-lite"; // store import { useMobxStore } from "lib/mobx/store-provider"; import { RootStore } from "store/root"; interface IHeaderSubGroupByCard { icon?: React.ReactNode; title: string; count: number; column_id: string; } export const HeaderSubGroupByCard = observer(({ icon, title, count, column_id }: IHeaderSubGroupByCard) => { const { issueKanBanView: issueKanBanViewStore }: RootStore = useMobxStore(); return (
issueKanBanViewStore?.handleKanBanToggle("subgroupByIssuesVisibility", column_id)} > {issueKanBanViewStore.kanBanToggle?.subgroupByIssuesVisibility.includes(column_id) ? ( ) : ( )}
{icon ? icon : }
{title}
{count || 0}
); });