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