Files
Frontend/src/app/components/card.tsx

13 lines
300 B
TypeScript
Raw Normal View History

2024-04-16 22:50:42 +01:00
import { cn } from "@/common/utils";
2024-04-18 03:51:41 +01:00
import { ReactElement } from "react";
2024-04-16 22:50:42 +01:00
2024-04-15 09:09:45 +01:00
export function Card({
children,
2024-04-16 22:50:42 +01:00
className,
2024-04-15 09:09:45 +01:00
}: Readonly<{
children: React.ReactNode;
2024-04-16 22:50:42 +01:00
className?: string;
2024-04-18 03:51:41 +01:00
}>): ReactElement {
2024-04-16 22:50:42 +01:00
return <div className={cn("bg-secondary rounded-lg p-3", className)}>{children}</div>;
2024-04-15 09:09:45 +01:00
}