import * as React from 'react'; import Tooltip, { TooltipPosition } from '../tooltip'; import LabelPrimitive from './LabelPrimitive'; export interface StandardLabelProps { /** Child for the label */ children: React.ReactElement; /** Text content of the label */ labelContent: React.ReactNode; /** Optional props for the label element */ labelElProps?: React.ComponentPropsWithoutRef<'label'>; /** Optional tooltip text for the label */ tooltip?: React.ReactNode; } const StandardLabel = ({ children, tooltip, ...rest }: StandardLabelProps) => { const label = {children}; return tooltip ? ( {label} ) : ( label ); }; export default StandardLabel;