import React from "react"; import Image from "next/image"; // icon import { PlusIcon } from "@heroicons/react/24/outline"; // helper import { capitalizeFirstLetter } from "helpers/string.helper"; type Props = { type: "cycle" | "module" | "project" | "issue"; title: string; description: React.ReactNode | string; imgURL: string; }; export const EmptyState: React.FC = ({ type, title, description, imgURL }) => { const shortcutKey = (type: string) => { switch (type) { case "cycle": return "Q"; case "module": return "M"; case "project": return "P"; default: return "C"; } }; return (
{type}

{title}

Use shortcut{" "} {shortcutKey(type)} {" "} to create {type} from anywhere.

{description}

); };