import { createSafeContext } from '@mantine/core'; import { type ScottyOptions } from './types'; export interface OptionsContext { options: ScottyOptions; setOptions: (options: ScottyOptions) => void; resetOptions: () => void; getOptions: (path: string) => string; updateOptions: (path: string, value: string) => void; } export const [OptionsContextProvider, useOptionsContext] = createSafeContext( 'useOptionsContext must be used within OptionsContextProvider' );