import type { HTMLAttributes, ReactNode } from 'react'; import { forwardRef } from 'react'; import * as styles from './styles.css'; export const BlockCard = forwardRef< HTMLDivElement, { left?: ReactNode; title: string; desc?: string; right?: ReactNode; disabled?: boolean; } & HTMLAttributes >(({ left, title, desc, right, disabled, onClick, ...props }, ref) => { return (
{left &&
{left}
}
{title}
{desc}
{right &&
{right}
}
); }); BlockCard.displayName = 'BlockCard';