UNPKG

mui-toolpad-extended-tuni

Version:
38 lines (37 loc) 1.1 kB
/** @format */ /** * PageToolbar Component * * @version 3.1.0 * * A dynamic toolbar component that renders actions based on the current route. * Automatically updates when actions are registered or unregistered. * * Features: * - Route-based action rendering * - Dynamic action registration/unregistration * - Automatic re-rendering on changes * - Support for custom toolbar overrides * - Support for passing props to toolbar components * * @example * ```tsx * // In your app layout * <AppLayout> * <PageToolbar /> * {children} * </AppLayout> * * // Register actions in your components * useEffect(() => { * registerToolbarAction('/my-route', MyAction); * return () => unregisterToolbarAction('/my-route', MyAction); * }, []); * * // Register with props * registerPageToolbarAction('/my-route', MyAction, { data: 'some-data' }); * ``` */ declare const RegisteredPageTools: () => import("react/jsx-runtime").JSX.Element | null; export declare const HeaderWithPageRegistryToolbar: () => import("react/jsx-runtime").JSX.Element; export default RegisteredPageTools;