Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

288 B
Raw Blame
import React from 'react';
import { SidebarContext } from './sidebar';

export const useSidebar = () => {
    const context = React.useContext(SidebarContext);
    if (!context) {
        throw new Error('useSidebar must be used within a SidebarProvider.');
    }

    return context;
};