import { cx } from '@fuel-ui/css'; import { createComponent, useCreateStyledElement } from '../../utils'; import { useInputProps } from './Input'; import * as styles from './styles'; const InputAddon = createComponent(({ className, children, ...props }) => { const { size } = useInputProps(); const classes = cx('fuel_InputAddon', className); const customProps = { ...props, className: classes }; return useCreateStyledElement( 'div', styles.addon, { size }, customProps, children, ); }); type OmitProps = 'left' | 'right'; type ObjProps = { id?: string; }; export const InputAddonLeft = createComponent( ({ className, ...props }) => ( ), ); export const InputAddonRight = createComponent( ({ className, ...props }) => ( ), ); InputAddonLeft.id = 'InputAddon'; InputAddonRight.id = 'InputAddon';