import type { ReactNode } from "react"; import React from "react"; import { classNames } from "@calcom/lib"; import type { IconName } from "../.."; import { Icon } from "../.."; import { Button } from "../../components/button"; export function EmptyScreen({ Icon: icon, customIcon, avatar, headline, description, buttonText, buttonOnClick, buttonRaw, border = true, dashedBorder = true, className, iconClassName, iconWrapperClassName, limitWidth = true, }: { Icon?: IconName; customIcon?: React.ReactElement; avatar?: React.ReactElement; headline: string | React.ReactElement; description?: string | React.ReactElement; buttonText?: string; buttonOnClick?: (event: React.MouseEvent) => void; buttonRaw?: ReactNode; // Used incase you want to provide your own button. border?: boolean; dashedBorder?: boolean; iconWrapperClassName?: string; iconClassName?: string; limitWidth?: boolean; } & React.HTMLAttributes) { return ( <>
{!avatar ? null : (
{avatar}
)} {!icon ? null : (
)} {!customIcon ? null : <>{customIcon}}

{headline}

{description && (
{description}
)} {buttonOnClick && buttonText && } {buttonRaw}
); }