mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import { createSafeContext } from './create-safe-context';
|
|
|
|
export interface DropzoneContextValue {
|
|
idle: boolean;
|
|
accept: boolean;
|
|
reject: boolean;
|
|
}
|
|
|
|
export const [DropzoneProvider, useDropzoneContext] =
|
|
createSafeContext<DropzoneContextValue>(
|
|
'Dropzone component was not found in tree',
|
|
);
|