Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

271 B
Raw Blame
import { createContext, useContext } from 'react';

export const AIContext = createContext(null);

export function useServerkitAI() {
    const ctx = useContext(AIContext);
    if (!ctx) throw new Error('useServerkitAI must be used within AIProvider');
    return ctx;
}