-
Notifications
You must be signed in to change notification settings - Fork 438
Expand file tree
/
Copy pathProfileEmptyContainers.tsx
More file actions
41 lines (39 loc) · 998 Bytes
/
ProfileEmptyContainers.tsx
File metadata and controls
41 lines (39 loc) · 998 Bytes
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
import { Button } from '@/components/ui/button';
import React from 'react';
const ProfileEmptyContainers = ({
title,
isOwner,
Icon,
description,
handleClick,
buttonText,
}: {
title: string;
Icon: React.ElementType;
description: string;
handleClick: () => void;
buttonText: string;
isOwner: boolean;
}) => {
return (
<div className="border rounded-2xl h-80 overflow-hidden flex flex-col gap-y-4 px-6 items-center justify-center">
<Icon
width={32}
height={32}
className="dark:text-slate-400 text-slate-500"
/>
<div className="text-center">
<h4 className="font-bold text-xl">{title}</h4>
<p className="text-sm font-medium text-slate-500 dark:text-slate-400">
{description}
</p>
</div>
{isOwner && (
<Button onClick={handleClick} className="text-white rounded-xs">
{buttonText}
</Button>
)}
</div>
);
};
export default ProfileEmptyContainers;