import React, { forwardRef } from 'react'; import TextFieldIcon from './TextFieldIcon'; import { BaseTextField } from './TextField.style'; import type { TextFieldProps, MultiTextFieldProps, SingleTextFieldProps } from './TextField.types'; const SingleTextField = forwardRef((props, ref) => { const { size = 'small', leftIcon, rightIcon, leftIconSx, rightIconSx, onLeftIconClick, onRightIconClick, InputProps, ...restProps } = props; return ( ), endAdornment: rightIcon && ( ), }, ...InputProps, }} /> ); }); const MultiTextField = forwardRef( ({ size = 'small', ...restProps }, ref) => { return ( ); }, ); const TextField = forwardRef((props, ref) => { const { rows, size, multiline = false, ...restProps } = props; return multiline ? ( ) : ( ); }); export default TextField;