mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
Add server-side folders and files page UI (#6383)
This commit is contained in:
@@ -8,7 +8,12 @@ export const useFileHandler = () => {
|
||||
const addFiles = useCallback(
|
||||
async (
|
||||
files: File[],
|
||||
options: { insertAfterPageId?: string; selectFiles?: boolean } = {},
|
||||
options: {
|
||||
insertAfterPageId?: string;
|
||||
selectFiles?: boolean;
|
||||
/** Persist to IDB without dispatching to workspace state. */
|
||||
skipWorkspaceDispatch?: boolean;
|
||||
} = {},
|
||||
): Promise<StirlingFile[]> => {
|
||||
// Merge default options with passed options - passed options take precedence
|
||||
const mergedOptions = { selectFiles: true, ...options };
|
||||
|
||||
Reference in New Issue
Block a user