|
|
|
@ -4,7 +4,7 @@ import { BrowserState } from '../reducers/workspace' |
|
|
|
|
|
|
|
|
|
export const FileSystemContext = createContext<{ |
|
|
|
|
fs: BrowserState, |
|
|
|
|
modal:(title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, |
|
|
|
|
modal:(title: string | JSX.Element, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void, |
|
|
|
|
dispatchInitWorkspace:() => Promise<void>, |
|
|
|
|
dispatchFetchDirectory:(path: string) => Promise<void>, |
|
|
|
|
dispatchAddInputField:(path: string, type: 'file' | 'folder') => Promise<void>, |
|
|
|
|