mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
21 lines
569 B
TypeScript
21 lines
569 B
TypeScript
|
import { observer } from "mobx-react-lite";
|
||
|
// components
|
||
|
import { EmptyState } from "@/components/empty-state";
|
||
|
// constants
|
||
|
import { EMPTY_STATE_DETAILS } from "@/constants/empty-state";
|
||
|
// hooks
|
||
|
import { useAppRouter } from "@/hooks/store";
|
||
|
|
||
|
// assets
|
||
|
|
||
|
export const ProfileViewEmptyState: React.FC = observer(() => {
|
||
|
// store hooks
|
||
|
const { profileViewId } = useAppRouter();
|
||
|
|
||
|
if (!profileViewId) return null;
|
||
|
|
||
|
const emptyStateType = `profile-${profileViewId}`;
|
||
|
|
||
|
return <EmptyState type={emptyStateType as keyof typeof EMPTY_STATE_DETAILS} size="sm" />;
|
||
|
});
|