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