mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
30 lines
945 B
TypeScript
30 lines
945 B
TypeScript
"use client";
|
|
|
|
// mobx react lite
|
|
import { observer } from "mobx-react-lite";
|
|
// interfaces
|
|
import { IIssueState } from "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 (
|
|
<div className="py-2 px-3 flex items-center">
|
|
<div className="w-[28px] h-[28px] flex justify-center items-center">
|
|
<stateGroup.icon />
|
|
</div>
|
|
<div className="font-semibold leading-6 text-base capitalize ml-2 mr-3">{state?.name}</div>
|
|
{/* <div className="text-gray-700 font-normal text-base">{store.issue.getCountOfIssuesByState(state.id)}</div> */}
|
|
</div>
|
|
);
|
|
});
|