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