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 tooltip text for the label */ tooltip?: React.ReactNode; } const StandardLabel = ({ children, labelContent, tooltip }: StandardLabelProps) => { const label = {children}; return tooltip ? ( {label} ) : ( label ); }; export default StandardLabel;