This commit is contained in:
Chris Kruining 2024-10-15 16:39:24 +02:00
parent 75bd06cac3
commit 40f46eba1d
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
17 changed files with 426 additions and 150 deletions

View file

@ -62,7 +62,7 @@ export const FilesProvider = (props) => {
return <FilesContext.Provider value={ctx}>{props.children}</FilesContext.Provider>;
}
export const useFiles = () => useContext(FilesContext)!;
export const useFiles = () => useContext(FilesContext);
export const load = (file: File): Promise<Map<string, string> | undefined> => {
switch (file.type) {