import { createContext, useContext, type ReactNode } from "react"; export type UhuruPanelIconHoverAnimation = "none" | "lift" | "slide" | "pulse"; export type UhuruPanelState = { collapsed: boolean; collapsedSize?: number; expandOnHover?: boolean; iconHoverAnimation?: UhuruPanelIconHoverAnimation; onToggleCollapsed?: () => void; showRail?: boolean; showToggle?: boolean; side: "left" | "right" | "bottom"; }; const UhuruPanelContext = createContext(null); export function UhuruPanelStateProvider({ children, collapsed, collapsedSize, expandOnHover, iconHoverAnimation, onToggleCollapsed, showRail, showToggle, side, }: UhuruPanelState & { children: ReactNode }) { return ( {children} ); } export function useUhuruPanelState() { return useContext(UhuruPanelContext); }