import { classy } from '@audentio/utils/src/classy'; import HelpCircleIcon from 'mdi-react/HelpCircleIcon'; import React from 'react'; import { Popover } from '../Popover'; import style from './InputLabel.scss'; interface InputLabelProps extends React.HTMLProps { label?: string; help?: any; onClick?: () => void; disabled?: boolean; } export function InputLabel(props: InputLabelProps) { const { label, help, disabled, onClick, className, ...rest } = props; if (!label) return null; return (
{label} {help && ( )}
); }