Files
documentation/node_modules/@docusaurus/theme-common/lib/utils/navbarUtils.d.ts
2024-03-22 03:47:51 +05:30

21 lines
703 B
TypeScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { type ReactNode } from 'react';
/**
* Split links by left/right. If position is unspecified, fallback to right.
*/
export declare function splitNavbarItems<T extends {
position?: 'left' | 'right';
}>(items: T[]): [leftItems: T[], rightItems: T[]];
/**
* Composes multiple navbar state providers that are mutually dependent and
* hence can't be re-ordered.
*/
export declare function NavbarProvider({ children }: {
children: ReactNode;
}): JSX.Element;
//# sourceMappingURL=navbarUtils.d.ts.map