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