14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
import { ReactNode } from 'react';
|
|
|
|
interface CardProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export default function Card({ children, className = '' }: CardProps) {
|
|
return (
|
|
<div className={`rounded-lg bg-iron-gray p-6 shadow-card border border-charcoal-outline hover:shadow-glow transition-shadow duration-200 ${className}`}>
|
|
{children}
|
|
</div>
|
|
);
|
|
} |