automagik-cli
Version:
Automagik CLI - A powerful command-line interface for interacting with Automagik Hive multi-agent AI systems
20 lines (19 loc) • 732 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
import { useResponsiveLayout } from '../hooks/useResponsiveLayout.js';
const ResponsiveContext = createContext(undefined);
export const ResponsiveProvider = ({ children }) => {
const layout = useResponsiveLayout({
debounceMs: 150,
minInputWidth: 20,
widthFraction: 0.9,
});
return (_jsx(ResponsiveContext.Provider, { value: { layout }, children: children }));
};
export const useResponsive = () => {
const context = useContext(ResponsiveContext);
if (context === undefined) {
throw new Error('useResponsive must be used within a ResponsiveProvider');
}
return context;
};