diff --git a/packages/types/SVGComponent.d.ts b/packages/types/SVGComponent.d.ts new file mode 100644 index 00000000..98f38b8b --- /dev/null +++ b/packages/types/SVGComponent.d.ts @@ -0,0 +1 @@ +export type SVGComponent = React.FunctionComponent>; diff --git a/packages/ui/EmptyScreen.tsx b/packages/ui/EmptyScreen.tsx new file mode 100644 index 00000000..15d675a0 --- /dev/null +++ b/packages/ui/EmptyScreen.tsx @@ -0,0 +1,27 @@ +import React from "react"; + +import { SVGComponent } from "@calcom/types/SVGComponent"; + +export default function EmptyScreen({ + Icon, + headline, + description, +}: { + Icon: SVGComponent; + headline: string; + description: string | React.ReactElement; +}) { + return ( + <> +
+
+ +
+
+

{headline}

+

{description}

+
+
+ + ); +}