| import React from 'react'; | |
| interface CardProps { | |
| title: string; | |
| icon?: React.ReactNode; | |
| children: React.ReactNode; | |
| className?: string; | |
| } | |
| const Card: React.FC<CardProps> = ({ title, icon, children, className }) => { | |
| return ( | |
| <div className={`bg-white border border-gray-200 rounded-lg shadow-sm w-full ${className}`}> | |
| <div className="flex items-center justify-between p-4 border-b border-gray-200"> | |
| <div className="flex items-center gap-3"> | |
| {icon} | |
| <h2 className="text-lg font-semibold text-gray-700">{title}</h2> | |
| </div> | |
| </div> | |
| <div className="p-6"> | |
| {children} | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default Card; |