@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
19 lines (18 loc) • 541 B
TypeScript
interface ConsentDialogContextValue {
/**
* Whether the consent checkbox is checked.
*/
isChecked: boolean;
/**
* Function to update the consent checkbox state.
*/
setIsChecked: (checked: boolean) => void;
}
export declare const ConsentDialogContext: import('react').Context<ConsentDialogContextValue | null>;
/**
* Hook to access the ConsentDialog context.
*
* @throws If used outside of a ConsentDialog component
*/
export declare const useConsentDialog: () => ConsentDialogContextValue;
export {};