import { useContext } from 'react';
import { ThemeContext } from '../components/ThemeProvider/ThemeProvider.js';

const useTheme = () => {
    const context = useContext(ThemeContext);
    if (context === undefined) {
        throw new Error('useTheme must be used within a ThemeProvider');
    }
    return context;
};

export { useTheme as default };
//# sourceMappingURL=useTheme.js.map
