import React, { useState } from "react"; import Image from "next/image"; // ui import { Button } from "@plane/ui"; type Props = { title: string; description?: React.ReactNode; image: any; comicBox?: { direction: "left" | "right"; title: string; description: string; extraPadding?: boolean; }; primaryButton?: { icon?: any; text: string; onClick: () => void; }; disabled?: boolean; }; export const NewEmptyState: React.FC = ({ title, description, image, primaryButton, disabled = false, comicBox, }) => { const [isHovered, setIsHovered] = useState(false); const handleMouseEnter = () => { setIsHovered(true); }; const handleMouseLeave = () => { setIsHovered(false); }; return (

{title}

{description &&

{description}

}
{primaryButton?.text
{primaryButton && ( )} {comicBox && isHovered && (comicBox.direction === "right" ? (

{comicBox?.title}

{comicBox?.description}

) : (

{comicBox?.title}

{comicBox?.description}

))}
); };