import { ComponentType, PropsWithChildren, ReactNode } from 'react'; import clsx from 'clsx'; import { Icon } from '@@/Icon'; interface Props { icon?: ReactNode | ComponentType; label: string; description?: ReactNode; className?: string; } export function TableTitle({ icon, label, children, description, className, }: PropsWithChildren) { return (
{icon && (
)} {label}
{children}
{description}
); }