Spaces:
Configuration error
Configuration error
Download frontend/src/components/shared/inputs/base-url-input.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/inputs/base-url-input.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/shared/inputs/base-url-input.tsx
-
curl -L -o base-url-input.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/shared/inputs/base-url-input.tsx
827 Bytes
| import { Input } from "@heroui/react"; | |
| import { useTranslation } from "react-i18next"; | |
| import { I18nKey } from "#/i18n/declaration"; | |
| interface BaseUrlInputProps { | |
| isDisabled: boolean; | |
| defaultValue: string; | |
| } | |
| export function BaseUrlInput({ isDisabled, defaultValue }: BaseUrlInputProps) { | |
| const { t } = useTranslation(); | |
| return ( | |
| <fieldset className="flex flex-col gap-2"> | |
| <label htmlFor="base-url" className="font-[500] text-[#A3A3A3] text-xs"> | |
| {t(I18nKey.SETTINGS_FORM$BASE_URL_LABEL)} | |
| </label> | |
| <Input | |
| isDisabled={isDisabled} | |
| id="base-url" | |
| name="base-url" | |
| defaultValue={defaultValue} | |
| aria-label="Base URL" | |
| classNames={{ | |
| inputWrapper: "bg-[#27272A] rounded-md text-sm px-3 py-[10px]", | |
| }} | |
| /> | |
| </fieldset> | |
| ); | |
| } | |