import type { ReactNode } from "react"; import React from "react"; import type { IconType } from "react-icons"; import type { SVGComponent } from "@calcom/types/SVGComponent"; import { Button } from "../../components/button"; export function EmptyScreen({ Icon, avatar, headline, description, buttonText, buttonOnClick, buttonRaw, }: { Icon?: SVGComponent | IconType; 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. }) { return ( <>
{!avatar ? null : (
{avatar}
)} {!Icon ? null : (
)}

{headline}

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