import React from 'react'; import './Card.css'; interface CardProps { id?: string; title?: string; subtitle?: string; bodyType?: string; type?: string; refresh?: React.ReactNode; children: React.ReactNode; } const Card = ({ type, id, title, subtitle, refresh, bodyType, children }: CardProps) => (
{(title || subtitle) && (
{title &&
{title}
} {subtitle &&
}
{refresh &&
{refresh}
}
)}
{children}
); export default Card;