This commit is contained in:
2026-12-02 09:30:54 +08:00
parent 215d6d1253
commit fc2dc46f43
76 changed files with 1235 additions and 870 deletions
@@ -1,20 +1,7 @@
import { createContext, useContext } from "react";
import type { useStateRegistry } from "../../utils/use-state-registry";
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);