bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
15 lines (14 loc) • 557 B
TypeScript
export declare function useRoutePathState(_path?: string, identifier?: string): {
active: boolean;
toggle: (_open?: boolean) => void;
};
type RoutePathStateContextType = {
defaultIdentifier: string;
path: string;
activeIdentifier: string;
setActiveIdentifier: (identifier: string) => void;
};
export declare function RoutePathStateProvider({ children, defaultIdentifier, path, }: Pick<RoutePathStateContextType, "path" | "defaultIdentifier"> & {
children: React.ReactNode;
}): import("react/jsx-runtime").JSX.Element;
export {};