File size: 1,100 Bytes
9cd6ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import Image from "next/image";
import ClydeAffraid from "assets/images/clyde/affraid.svg";

export const Empty = ({
  title,
  description,
  button,
  className,
  action,
}: {
  title?: string;
  description?: string;
  button?: any;
  className?: string;
  action?: () => void;
}) => {
  return (
    <div className={`mx-auto text-center ${className}`}>
      {/* <Image
        src={ClydeAffraid}
        width={32}
        height={32}
        className="w-full max-w-[100px] mx-auto mt-6"
        alt="No results, clyde is sad :("
      /> */}
      {title && (
        <p className="font-bold text-white text-base mt-4 tracking-wider">
          {title}
        </p>
      )}
      {title && (
        <p className="text-dark-100 font-medium tracking-wider text-sm">
          {description}
        </p>
      )}
      {button && (
        <div
          className="mt-5 w-full bg-blue text-white font-semibold px-3 py-2.5 rounded-lg cursor-pointer hover:bg-blue text-sm"
          onClick={action ? action : () => null}
        >
          {button}
        </div>
      )}
    </div>
  );
};