'use client'; import * as React from 'react'; import type { MenuStore } from '../store/MenuStore'; export const MenuRootContext = React.createContext(undefined); export function useMenuRootContext() { const context = React.useContext(MenuRootContext); if (context === undefined) { throw new Error( 'Zest: MenuRootContext is missing. Menu parts must be placed within .', ); } return context; }