mm
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user