Adapt FS before passing it to FSProvider

This commit is contained in:
Alex Gleason committed 2025-07-20 17:27:04 -05:00
1 parent 3bf924ef3a
commit 87f5d6a117
3 files changed
+7 -6

No files matched your search

+3 -4
View File
@@ -1,16 +1,15 @@
import { ReactNode } from 'react';
import type LightningFS from '@isomorphic-git/lightning-fs';
import { FSContext, type FSContextType } from '@/contexts/FSContext';
import { LightningFSAdapter } from '@/lib/LightningFSAdapter';
import { JSRuntimeFS } from '@/lib/JSRuntime';
interface FSProviderProps {
children: ReactNode;
fs: LightningFS.PromisifiedFS;
fs: JSRuntimeFS;
}
export function FSProvider({ children, fs }: FSProviderProps) {
const contextValue: FSContextType = {
fs: new LightningFSAdapter(fs)
fs,
};
return (