import React from "react";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { SVGComponent } from "@calcom/types/SVGComponent";
import { Button } from "@calcom/ui";
import { FiSmartphone, FiMail, FiPlus } from "@calcom/ui/components/icon";
type WorkflowExampleType = {
Icon: SVGComponent;
text: string;
};
function WorkflowExample(props: WorkflowExampleType) {
const { Icon, text } = props;
return (
);
}
export default function EmptyScreen({
IconHeading,
headline,
description,
buttonText,
buttonOnClick,
isLoading,
showExampleWorkflows,
}: {
IconHeading: SVGComponent;
headline: string;
description: string | React.ReactElement;
buttonText?: string;
buttonOnClick?: (event: React.MouseEvent) => void;
isLoading: boolean;
showExampleWorkflows: boolean;
}) {
const { t } = useLocale();
const workflowsExamples = [
{ icon: FiSmartphone, text: t("workflow_example_1") },
{ icon: FiSmartphone, text: t("workflow_example_2") },
{ icon: FiMail, text: t("workflow_example_3") },
{ icon: FiMail, text: t("workflow_example_4") },
{ icon: FiMail, text: t("workflow_example_5") },
{ 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) => (
))}
)}
>
);
}