import { useLocale } from "@calcom/lib/hooks/useLocale"; import cn from "@calcom/ui/classNames"; import { EmptyScreen as ClassicEmptyScreen } from "@calcom/ui/components/empty-screen"; import { Icon } from "@calcom/ui/components/icon"; import type { IconName } from "@calcom/ui/components/icon"; import { CreateButtonWithTeamsList } from "~/ee/teams/components/createButton/CreateButtonWithTeamsList"; import { WorkflowCreationDialog, useWorkflowCreation } from "./WorkflowCreationDialog"; type WorkflowExampleType = { icon: IconName; iconWrapperClassName?: string; title: string; description: string; image?: string; }; function WorkflowExample(props: WorkflowExampleType) { const { icon: iconName, title, description, iconWrapperClassName, image } = props; return (
{image ? ( ) : (
{title}
{description}
); } export default function EmptyScreen(props: { isFilteredView: boolean }) { const { t } = useLocale(); const { showDialog, setShowDialog, pendingTeamId, openDialog } = useWorkflowCreation(); const workflowsExamples: WorkflowExampleType[] = [ { icon: "smartphone", title: t("send_sms_reminder"), description: t("send_sms_reminder_description") }, { icon: "smartphone", title: t("follow_up_with_no_shows"), description: t("follow_up_with_no_shows_description"), }, { icon: "mail", title: t("remind_attendees_to_bring_id"), description: t("remind_attendees_to_bring_id_description"), }, { icon: "mail", title: t("email_to_remind_booking"), description: t("email_to_remind_booking_description"), }, { icon: "mail", title: t("custom_email_reminder"), description: t("custom_email_reminder_description"), }, { icon: "smartphone", title: t("custom_sms_reminder"), description: t("custom_sms_reminder_description"), }, ]; const calAITemplates: WorkflowExampleType[] = [ { icon: "phone-outgoing", title: t("call_to_confirm_booking"), description: t("cal_ai_phone_call_action_description"), iconWrapperClassName: "bg-[#2A2947]", image: "/call-outgoing.svg", }, { icon: "phone-outgoing", title: t("follow_up_with_no_shows"), description: t("follow_up_with_no_shows_description"), iconWrapperClassName: "bg-[#2A2947]", image: "/call-outgoing.svg", }, { icon: "phone-outgoing", title: t("remind_attendees_to_bring_id"), description: t("remind_attendees_to_bring_id_description"), iconWrapperClassName: "bg-[#2A2947]", image: "/call-outgoing.svg", }, ]; // new workflow example when 'after meetings ends' trigger is implemented: Send custom thank you email to attendee after event (Smile icon), if (props.isFilteredView) { return ; } return ( <>

{t("workflows")}

{t("no_workflows_description")}

); } const TemplateSection = ({ title, examples }: { title: string; examples: WorkflowExampleType[] }) => { return (

{title}

{examples.map((example: WorkflowExampleType, index: number) => ( ))}
); };