// mobx react lite import { observer } from "mobx-react-lite"; // ui import { StateGroupIcon } from "@plane/ui"; // constants import { issueGroupFilter } from "@/constants/data"; // mobx hook import { useIssue } from "@/hooks/store"; // interfaces import { IIssueState } from "@/types/issue"; export const IssueKanBanHeader = observer(({ state }: { state: IIssueState }) => { const { getCountOfIssuesByState } = useIssue(); const stateGroup = issueGroupFilter(state.group); if (stateGroup === null) return <>; return (
{state?.name}
{getCountOfIssuesByState(state.id)}
); });