import React from 'react'; import { useTranslation } from 'react-i18next'; import { SupportedStorageServices } from '@services/types'; import SearchGithubRepo from '@/components/StorageService/SearchGithubRepo'; import { CreateContainer, LocationPickerContainer, LocationPickerInput } from './FormComponents'; export function GitRepoUrlForm({ storageProvider, gitRepoUrl, gitRepoUrlSetter, wikiFolderNameSetter, isCreateMainWorkspace, error, }: { error?: boolean; gitRepoUrl: string; gitRepoUrlSetter: (nextUrl: string) => void; isCreateMainWorkspace: boolean; storageProvider?: SupportedStorageServices; wikiFolderNameSetter?: (nextName: string) => void; }): React.JSX.Element { const { t } = useTranslation(); return ( ) => { gitRepoUrlSetter(event.target.value); }} label={t('AddWorkspace.GitRepoUrl')} value={gitRepoUrl} /> {storageProvider === SupportedStorageServices.github && ( )} ); }