import React, { memo, forwardRef } from 'react'; import { default as Box, IBoxProps } from '../Box'; import type { IInputProps } from './types'; import { useColorModeValue } from '../../../core/color-mode/hooks'; export const InputLeftAddon = memo( forwardRef((props: IBoxProps & IInputProps, ref?: any) => { const addonsDefaultStyle = { p: 3, borderColor: useColorModeValue('gray.300', 'gray.600'), borderWidth: 1, }; return ( {props.children} ); }) ); export const InputRightAddon = memo( forwardRef((props: IBoxProps & IInputProps, ref?: any) => { const addonsDefaultStyle = { p: 3, borderColor: useColorModeValue('gray.300', 'gray.600'), borderWidth: 1, }; return ( {props.children} ); }) );