BookmarkFolderNameInput.tsx 662 B

12345678910111213141516171819202122
  1. import { useTranslation } from 'next-i18next';
  2. import { ValidationTarget } from '~/client/util/input-validator';
  3. import type { ClosableTextInputProps } from '~/components/Common/ClosableTextInput';
  4. import ClosableTextInput from '~/components/Common/ClosableTextInput';
  5. type Props = ClosableTextInputProps;
  6. export const BookmarkFolderNameInput = (props: Props): JSX.Element => {
  7. const { t } = useTranslation();
  8. return (
  9. <div className="flex-fill folder-name-input">
  10. <ClosableTextInput
  11. placeholder={t('bookmark_folder.input_placeholder')}
  12. validationTarget={ValidationTarget.FOLDER}
  13. {...props}
  14. />
  15. </div>
  16. );
  17. };