Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

324 B
Raw Blame
import { useContext } from 'react';

import { ThemeProviderContext } from '@/providers/theme-provider';

export function useTheme() {
    const context = useContext(ThemeProviderContext);

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

    return context;
}