2021-09-21 10:36:29 +00:00
|
|
|
import React from "react";
|
|
|
|
|
2021-09-22 19:52:38 +00:00
|
|
|
import { SVGComponent } from "@lib/types/SVGComponent";
|
|
|
|
|
2021-09-21 10:36:29 +00:00
|
|
|
export default function EmptyScreen({
|
|
|
|
Icon,
|
|
|
|
headline,
|
|
|
|
description,
|
|
|
|
}: {
|
|
|
|
Icon: SVGComponent;
|
|
|
|
headline: string;
|
|
|
|
description: string;
|
|
|
|
}) {
|
|
|
|
return (
|
|
|
|
<>
|
2021-09-30 19:59:34 +00:00
|
|
|
<div className="min-h-80 border border-dashed rounded-sm flex justify-center items-center flex-col my-6">
|
2021-09-21 10:36:29 +00:00
|
|
|
<div className="bg-white w-[72px] h-[72px] flex justify-center items-center rounded-full">
|
|
|
|
<Icon className="inline-block w-10 h-10 bg-white" />
|
|
|
|
</div>
|
2021-10-19 12:38:05 +00:00
|
|
|
<div className="max-w-[420px] text-center">
|
|
|
|
<h2 className="text-lg font-medium mt-6 mb-1">{headline}</h2>
|
|
|
|
<p className="text-sm leading-6 text-gray-600">{description}</p>
|
2021-09-21 10:36:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|