import React from 'react';
import { BaseInput } from '../BaseInput';

type BaseInputProps = React.ComponentProps<typeof BaseInput>;

export interface Props extends BaseInputProps {
  value?: string;
}

export function TextInput(props: Props) {
  const { name, ...otherProps } = props;

  return <BaseInput type="text" name={name} id={name} {...otherProps} />;
}

TextInput.displayName = 'TextInput';
