2024-03-27 08:45:49 +00:00
|
|
|
import { EIssuesStoreType } from "@/constants/issue";
|
2024-03-13 06:56:10 +00:00
|
|
|
import { ProjectArchivedEmptyState } from "./archived-issues";
|
|
|
|
import { CycleEmptyState } from "./cycle";
|
|
|
|
import { ProjectDraftEmptyState } from "./draft-issues";
|
|
|
|
import { GlobalViewEmptyState } from "./global-view";
|
2024-03-27 08:45:49 +00:00
|
|
|
import { ModuleEmptyState } from "./module";
|
|
|
|
import { ProjectEmptyState } from "./project-issues";
|
|
|
|
import { ProjectViewEmptyState } from "./project-view";
|
2024-03-13 06:56:10 +00:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
storeType: EIssuesStoreType;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const IssueLayoutEmptyState = (props: Props) => {
|
|
|
|
switch (props.storeType) {
|
|
|
|
case EIssuesStoreType.PROJECT:
|
|
|
|
return <ProjectEmptyState />;
|
|
|
|
case EIssuesStoreType.PROJECT_VIEW:
|
|
|
|
return <ProjectViewEmptyState />;
|
|
|
|
case EIssuesStoreType.ARCHIVED:
|
|
|
|
return <ProjectArchivedEmptyState />;
|
|
|
|
case EIssuesStoreType.CYCLE:
|
|
|
|
return <CycleEmptyState />;
|
|
|
|
case EIssuesStoreType.MODULE:
|
|
|
|
return <ModuleEmptyState />;
|
|
|
|
case EIssuesStoreType.DRAFT:
|
|
|
|
return <ProjectDraftEmptyState />;
|
|
|
|
case EIssuesStoreType.GLOBAL:
|
|
|
|
return <GlobalViewEmptyState />;
|
|
|
|
default:
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|