import React from "react"; import { Icon as FeatherIcon } from "react-feather"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { SVGComponent } from "@calcom/types/SVGComponent"; import { Button, Icon } from "@calcom/ui"; type WorkflowExampleType = { Icon: FeatherIcon; text: string; }; function WorkflowExample(props: WorkflowExampleType) { const { Icon, text } = props; return (
{text}
); } export default function EmptyScreen({ IconHeading, headline, description, buttonText, buttonOnClick, isLoading, showExampleWorkflows, }: { IconHeading: SVGComponent | FeatherIcon; headline: string; description: string | React.ReactElement; buttonText?: string; buttonOnClick?: (event: React.MouseEvent) => void; isLoading: boolean; showExampleWorkflows: boolean; }) { const { t } = useLocale(); const workflowsExamples = [ { icon: Icon.FiSmartphone, text: t("workflow_example_1") }, { icon: Icon.FiSmartphone, text: t("workflow_example_2") }, { icon: Icon.FiMail, text: t("workflow_example_3") }, { icon: Icon.FiMail, text: t("workflow_example_4") }, { icon: Icon.FiMail, text: t("workflow_example_5") }, { icon: Icon.FiSmartphone, text: t("workflow_example_6") }, ]; // new workflow example when 'after meetings ends' trigger is implemented: Send custom thank you email to attendee after event (FiSmile icon), return ( <>

{headline}

{description}

{buttonOnClick && buttonText && ( )}
{showExampleWorkflows && (
{workflowsExamples.map((example, index) => ( ))}
)} ); }