import { FormLabel, OverlayTrigger, Popover } from 'react-bootstrap' import { INSTRUCTIONS } from '@/constants' type Props = { kind: string children: React.ReactNode } export const TooltipFormLabel: React.FC = (props) => { const instruction = INSTRUCTIONS[props.kind] if (!instruction) { console.warn(`Could not load description "${props.kind}"`) return {props.children} } return ( {instruction.description} } > {props.children} ) }