Files
hats-app/app/(dashboard)/components/DashboardCard.tsx
T
2025-12-19 13:57:55 +07:00

31 lines
988 B
TypeScript

import { FC, type ReactNode } from 'react';
import { Card900, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { ScrollArea } from '@/components/ui/scroll-area';
type Props = {
title: string
description?: string
children: ReactNode
};
const DashboardCard: FC<Props> = ({ title, description, children }) => {
return (
<>
<Card900>
<CardHeader>
<CardTitle>{title}</CardTitle>
<CardDescription>{description}</CardDescription>
</CardHeader>
<CardContent className="sm:pl-0">
<ScrollArea className="px-6" height='max-h-[325px]'>
<div className="space-y-8 overflow-x-auto">
{children}
</div>
</ScrollArea>
</CardContent>
</Card900>
</>
);
}
export default DashboardCard;