import React, { ReactNode } from "react"; import { IconType } from "react-icons"; import { SVGComponent } from "@calcom/types/SVGComponent"; import { Button } from "../../components/button"; export function EmptyScreen({ Icon, headline, description, buttonText, buttonOnClick, buttonRaw, }: { Icon: SVGComponent | IconType; headline: string; description: string | React.ReactElement; buttonText?: string; buttonOnClick?: (event: React.MouseEvent) => void; buttonRaw?: ReactNode; // Used incase you want to provide your own button. }) { return ( <>

{headline}

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