2023-11-08 08:21:55 +00:00
import { observer } from "mobx-react-lite" ;
2023-10-30 14:39:04 +00:00
import { PlusIcon } from "lucide-react" ;
2023-11-08 08:21:55 +00:00
// mobx store
import { useMobxStore } from "lib/mobx/store-provider" ;
2023-10-30 14:39:04 +00:00
// components
import { EmptyState } from "components/common" ;
// assets
2023-11-28 13:17:52 +00:00
import emptyIssue from "public/empty-state/empty_issues.webp" ;
2023-11-27 08:45:33 +00:00
import { EProjectStore } from "store/command-palette.store" ;
2023-11-28 13:17:52 +00:00
import { NewEmptyState } from "components/common/new-empty-state" ;
2023-10-30 14:39:04 +00:00
2023-11-08 08:21:55 +00:00
export const ProjectEmptyState : React.FC = observer ( ( ) = > {
2023-11-27 08:45:33 +00:00
const {
commandPalette : commandPaletteStore ,
trackEvent : { setTrackElement } ,
} = useMobxStore ( ) ;
2023-11-08 08:21:55 +00:00
return (
< div className = "h-full w-full grid place-items-center" >
2023-11-28 13:17:52 +00:00
< 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 08:21:55 +00:00
image = { emptyIssue }
2023-11-28 13:17:52 +00:00
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 08:21:55 +00:00
primaryButton = { {
2023-11-28 13:17:52 +00:00
text : "Create your first issue" ,
2023-11-08 08:21:55 +00:00
icon : < PlusIcon className = "h-3 w-3" strokeWidth = { 2 } / > ,
2023-11-25 15:56:26 +00:00
onClick : ( ) = > {
setTrackElement ( "PROJECT_EMPTY_STATE" ) ;
2023-11-27 08:45:33 +00:00
commandPaletteStore . toggleCreateIssueModal ( true , EProjectStore . PROJECT ) ;
} ,
2023-11-08 08:21:55 +00:00
} }
/ >
< / div >
) ;
} ) ;