mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
13 lines
505 B
TypeScript
13 lines
505 B
TypeScript
![]() |
/**
|
||
|
* React contexts for file state and actions
|
||
|
*/
|
||
|
|
||
|
import { createContext } from 'react';
|
||
|
import { FileContextStateValue, FileContextActionsValue } from '../../types/fileContext';
|
||
|
|
||
|
// Split contexts for performance
|
||
|
export const FileStateContext = createContext<FileContextStateValue | undefined>(undefined);
|
||
|
export const FileActionsContext = createContext<FileContextActionsValue | undefined>(undefined);
|
||
|
|
||
|
// Export types for use in hooks
|
||
|
export type { FileContextStateValue, FileContextActionsValue };
|