mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
1dce72cb3c
* style: updated layouts UI in space * fix: build error
30 lines
1011 B
TypeScript
30 lines
1011 B
TypeScript
// mobx react lite
|
|
import { observer } from "mobx-react-lite";
|
|
// interfaces
|
|
import { IIssueState } from "types/issue";
|
|
// 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";
|
|
|
|
export const IssueListHeader = observer(({ state }: { state: IIssueState }) => {
|
|
const store: RootStore = useMobxStore();
|
|
|
|
const stateGroup = issueGroupFilter(state.group);
|
|
|
|
if (stateGroup === null) return <></>;
|
|
|
|
return (
|
|
<div className="p-3 flex items-center gap-2">
|
|
<div className="w-3.5 h-3.5 flex justify-center items-center">
|
|
<StateGroupIcon stateGroup={state.group} color={state.color} height="14" width="14" />
|
|
</div>
|
|
<div className="font-medium capitalize mr-1">{state?.name}</div>
|
|
<div className="text-custom-text-200 text-sm font-medium">{store.issue.getCountOfIssuesByState(state.id)}</div>
|
|
</div>
|
|
);
|
|
});
|