This commit is contained in:
2026-11-24 16:17:45 +08:00
parent a3dbdd7d11
commit ea56e4cabd
140 changed files with 1214 additions and 702 deletions
@@ -1,6 +1,21 @@
import { createContext, useContext } from "react";
import type { useStateRegistry } from "../../utils/use-state-registry";
export type MenuContextValue = { size?: "sm" | "md" } | null;
export type MenuContextValue = {
size?: "sm" | "md";
stateRegistry?: ReturnType<
typeof useStateRegistry<{
hasIcon: boolean;
hasCheckbox: boolean;
hasIndicator: boolean;
}>
>;
stateResult?: {
hasIcon: boolean;
hasCheckbox: boolean;
hasIndicator: boolean;
};
} | null;
export const MenuContext = createContext<MenuContextValue>(null);