"use client"; // mobx react lite import { observer } from "mobx-react-lite"; // interfaces import { IIssueState } from "store/types/issue"; // constants import { issueGroupFilter } from "constants/data"; // mobx hook import { useMobxStore } from "lib/mobx/store-provider"; import { RootStore } from "store/root"; 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)}
); });