mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
10 lines
300 B
JavaScript
10 lines
300 B
JavaScript
import { createContext, useContext } from 'react';
|
|
|
|
export const ShellDockContext = createContext(null);
|
|
|
|
export function useShellDock() {
|
|
const context = useContext(ShellDockContext);
|
|
if (!context) throw new Error('useShellDock must be used within ShellDockProvider');
|
|
return context;
|
|
}
|