import type React from 'react'; import { Loading } from '@components/generic/Loading'; type DefaultDivProps = JSX.IntrinsicElements['div']; interface CardProps extends DefaultDivProps { title?: string; description?: string | JSX.Element; buttons?: JSX.Element; lgPlaceholder?: JSX.Element; loading?: boolean; } export const Card = ({ title, description, buttons, children, className, lgPlaceholder, loading, ...props }: CardProps): JSX.Element => { return (
{loading && } {(title || description) && (
{title && (
{title}
)} {description && (
{description}
)}
{buttons}
)}
{children}
{lgPlaceholder && (
{lgPlaceholder}
)}
); };