{l10n.t(LocalizationKey.dashboardConfigurationAstroAstroContentTypesDescription)}
+ ++ {l10n.t(LocalizationKey.dashboardStepsStepsToGetStartedContentFoldersDescription)} +
+ + {settings?.dashboardState?.welcome?.contentFolders?.length > 0 && ( ++ {l10n.t(LocalizationKey.commonInformation)}: {l10n.t(LocalizationKey.dashboardStepsStepsToGetStartedContentFoldersInformationDescription)}. +
+ > + ); +}; \ No newline at end of file diff --git a/src/dashboardWebView/components/Configuration/Common/Folder.tsx b/src/dashboardWebView/components/Configuration/Common/Folder.tsx new file mode 100644 index 00000000..f3a3d219 --- /dev/null +++ b/src/dashboardWebView/components/Configuration/Common/Folder.tsx @@ -0,0 +1,34 @@ +import * as React from 'react'; +import { join } from 'path'; +import * as l10n from '@vscode/l10n'; +import { LocalizationKey } from '../../../../localization'; +import { ContentFolder } from '../../../../models'; +import { SelectItem } from '../../Steps/SelectItem'; + +export interface IFolderProps { + wsFolder: string; + folder: string; + folders: ContentFolder[]; + addFolder: (folder: string) => void; +} + +export const Folder: React.FunctionComponent