2023-11-08 13:51:55 +05:30
import { observer } from "mobx-react-lite" ;
2023-10-30 20:09:04 +05:30
import { PlusIcon } from "lucide-react" ;
2023-11-08 13:51:55 +05:30
// mobx store
import { useMobxStore } from "lib/mobx/store-provider" ;
2023-10-30 20:09:04 +05:30
// components
import { EmptyState } from "components/common" ;
// assets
2023-11-28 18:47:52 +05:30
import emptyIssue from "public/empty-state/empty_issues.webp" ;
2023-11-27 14:15:33 +05:30
import { EProjectStore } from "store/command-palette.store" ;
2023-11-28 18:47:52 +05:30
import { NewEmptyState } from "components/common/new-empty-state" ;
2023-10-30 20:09:04 +05:30
2023-11-08 13:51:55 +05:30
export const ProjectEmptyState : React.FC = observer ( ( ) = > {
2023-11-27 14:15:33 +05:30
const {
commandPalette : commandPaletteStore ,
trackEvent : { setTrackElement } ,
} = useMobxStore ( ) ;
2023-11-08 13:51:55 +05:30
return (
< div className = "h-full w-full grid place-items-center" >
2023-11-28 18:47:52 +05:30
< NewEmptyState
title = "Create an issue and assign it to someone, even yourself"
description = "Think of issues as jobs, tasks, work, or JTBD. Which we like.An issue and its sub-issues are usually time-based actionables assigned to members of your team. Your team creates, assigns, and completes issues to move your project towards its goal."
2023-11-08 13:51:55 +05:30
image = { emptyIssue }
2023-11-28 18:47:52 +05:30
comicBox = { {
title : "Issues are building blocks in Plane." ,
direction : "left" ,
description :
"Redesign the Plane UI, Rebrand the company, or Launch the new fuel injection system are examples of issues that likely have sub-issues." ,
} }
2023-11-08 13:51:55 +05:30
primaryButton = { {
2023-11-28 18:47:52 +05:30
text : "Create your first issue" ,
2023-11-08 13:51:55 +05:30
icon : < PlusIcon className = "h-3 w-3" strokeWidth = { 2 } / > ,
2023-11-25 21:26:26 +05:30
onClick : ( ) = > {
setTrackElement ( "PROJECT_EMPTY_STATE" ) ;
2023-11-27 14:15:33 +05:30
commandPaletteStore . toggleCreateIssueModal ( true , EProjectStore . PROJECT ) ;
} ,
2023-11-08 13:51:55 +05:30
} }
/ >
< / div >
) ;
} ) ;