import React from "react"; import { Icon as FeatherIcon } from "react-feather"; import { SVGComponent } from "@calcom/types/SVGComponent"; import { Icon } from "@calcom/ui/Icon"; import { Button } from "@calcom/ui/v2"; const workflowsExamples = [ { icon: Icon.FiMail, text: "Send email reminder 24 hours before event starts to host" }, { icon: Icon.FiSmartphone, text: "Send SMS reminder 1 hour before event starts to host" }, { icon: Icon.FiMail, text: "Send custom email when event is cancelled to host" }, { icon: Icon.FiMail, text: "Send email reminder 24 hours before event starts to attendee" }, { icon: Icon.FiSmartphone, text: "Send SMS reminder 1 hour before event starts to attendee" }, { icon: Icon.FiSmartphone, text: "Send custom SMS when event is rescheduled to attendee" }, ]; 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; }) { return ( <>

{headline}

{description}

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