import TextField, { TextFieldProps } from '@mui/material/TextField';

export type PhoneInputProps = TextFieldProps;

const CodeInput = (props: PhoneInputProps) => <TextField {...props} />;

CodeInput.defaultProps = {
	autoComplete: 'one-time-code',
	autoFocus: true,
	disabled: false,
	fullWidth: true,
	id: 'one-time-code',
	inputMode: 'numeric',
	label: '',
	margin: 'normal',
	placeholder: 'Enter the code',
	required: true,
	value: '',
	variant: 'outlined',
	autoCapitalize: 'characters',
};

export default CodeInput;
