import "./fileBrowser.css"; import * as React from "bloatless-react"; import { DangerousActionButton } from "./dangerousActionButton"; import { DirectoryItemList } from "./directoryItemList"; import { PATH_COMPONENT_SEPARATOR } from "../../Model/Global/storageModel"; import StorageViewModel from "../../ViewModel/Global/storageViewModel"; import { translations } from "../translations"; export function FileBrowser(storageViewModel: StorageViewModel) { const detailView = React.createProxyState( [storageViewModel.selectedPath], () => { if (storageViewModel.selectedPath.value == PATH_COMPONENT_SEPARATOR) return ( {translations.storage.noItemSelected} ); return (