2023-10-17 10:53:54 +00:00
|
|
|
import { observer } from "mobx-react-lite";
|
|
|
|
// components
|
|
|
|
import { HeaderGroupByCard } from "./group-by-card";
|
2023-11-27 08:45:33 +00:00
|
|
|
import { EProjectStore } from "store/command-palette.store";
|
2023-10-17 10:53:54 +00:00
|
|
|
|
|
|
|
export interface IEmptyHeader {
|
|
|
|
column_id: string;
|
|
|
|
column_value: any;
|
|
|
|
issues_count: number;
|
2023-11-27 08:45:33 +00:00
|
|
|
disableIssueCreation?: boolean;
|
|
|
|
currentStore: EProjectStore;
|
2023-10-17 10:53:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const EmptyHeader: React.FC<IEmptyHeader> = observer((props) => {
|
2023-11-27 08:45:33 +00:00
|
|
|
const { column_id, column_value, issues_count, disableIssueCreation, currentStore } = props;
|
2023-10-17 10:53:54 +00:00
|
|
|
|
2023-11-27 08:45:33 +00:00
|
|
|
return (
|
|
|
|
<HeaderGroupByCard
|
|
|
|
title={column_value?.title || "All Issues"}
|
|
|
|
count={issues_count}
|
|
|
|
issuePayload={{}}
|
|
|
|
disableIssueCreation={disableIssueCreation}
|
|
|
|
currentStore={currentStore}
|
|
|
|
/>
|
|
|
|
);
|
2023-10-17 10:53:54 +00:00
|
|
|
});
|