import { getContext } from'svelte';
import { ThemeContextError } from'./ThemeContextError.js';
exportfunctionuseTheme() {
const context = getContext('theme');
if (!context)
thrownewThemeContextError("'useTheme' must be used within a 'ThemeProvider'");
return context;
}