import { TooltipProps } from 'antd' ; import { CSSProperties } from 'react' ; import TooltipIcon from './TooltipIcon' ; export default function TooltipLabel ( { label , tip , placement , style , } ) { return ( < span style = { style } > < span style = { { marginRight : tip ? 5 : 0 } } > { label } < /span> { tip && < TooltipIcon tip = { tip } placement = { placement } / > } < /span>); }