import { jsx as _jsx } from "react/jsx-runtime";
// Minimal ThemeProvider shim for OwlCoda's Ink fork.
// OwlCoda has its own theme system — this just provides the API surface
// that ink.ts expects without pulling in upstream's config/theme deps.
import { createContext, useContext, useState } from 'react';
const DEFAULT_THEME = 'dark';
const ThemeContext = createContext({
    themeSetting: DEFAULT_THEME,
    setThemeSetting: () => { },
    setPreviewTheme: () => { },
    savePreview: () => { },
    cancelPreview: () => { },
    currentTheme: DEFAULT_THEME,
});
export function useTheme() {
    const ctx = useContext(ThemeContext);
    return [ctx.currentTheme, ctx];
}
export function usePreviewTheme() {
    return useContext(ThemeContext).setPreviewTheme;
}
export function ThemeProvider({ children }) {
    const [theme] = useState(DEFAULT_THEME);
    const value = {
        themeSetting: theme,
        setThemeSetting: () => { },
        setPreviewTheme: () => { },
        savePreview: () => { },
        cancelPreview: () => { },
        currentTheme: theme,
    };
    return _jsx(ThemeContext.Provider, { value: value, children: children });
}
export function useThemeSetting() {
    return ['dark', () => { }];
}
//# sourceMappingURL=ds-ThemeProvider.js.map