import { forwardRef } from 'react'; import type { HTMLProps } from 'react'; import { FiAlertCircle } from 'react-icons/fi'; import type { IconType } from 'react-icons/lib'; import type { Bound } from '../../../vis/models'; import styles from './Thumb.module.css'; interface Props extends HTMLProps { bound: Bound; isAuto: boolean; hasError: boolean; AutoIcon: IconType; } const Thumb = forwardRef((props, ref) => { const { bound, isAuto, hasError, AutoIcon, ...thumbProps } = props; return (
{isAuto && } {!isAuto && hasError && ( )}
); }); export default Thumb;