UNPKG

@theguild/components

Version:
68 lines (65 loc) 2.12 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import react__default, { ReactNode, ComponentProps } from 'react'; import { Search } from 'nextra/components'; export { GraphQLConfCard, GraphQLConfCardProps } from './graphql-conf-card.mjs'; import 'next/image'; type HiveNavigationProps = { companyMenuChildren?: ReactNode; children?: ReactNode; className?: string; /** * We change links to relative based on what product we're in. */ productName: string; logo?: ReactNode; navLinks?: { href: string; children: ReactNode; }[]; developerMenu: DeveloperMenuProps['developerMenu']; searchProps?: ComponentProps<typeof Search>; }; /** * * @example * ```tsx * <HiveNavigation * companyMenuChildren={<GraphQLConfCard image={graphQLConfLocalImage} />} * items={items} * > * {extraContent} * </HiveNavigation> * ``` */ declare function HiveNavigation({ companyMenuChildren, children, className, productName, logo, navLinks, developerMenu, searchProps, }: HiveNavigationProps): react_jsx_runtime.JSX.Element; interface ProductsMenuProps extends MenuContentColumnsProps { productName: string; } /** * @internal */ declare const ProductsMenu: react__default.ForwardRefExoticComponent<Omit<ProductsMenuProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>; type MenuContentColumnsProps = ComponentProps<'div'>; interface DeveloperMenuProps extends react__default.HTMLAttributes<HTMLDivElement> { developerMenu: { href: string; title?: string; icon: ReactNode; children: ReactNode; }[]; } /** * @internal */ declare const DeveloperMenu: react__default.ForwardRefExoticComponent<DeveloperMenuProps & react__default.RefAttributes<HTMLDivElement>>; /** * @internal */ declare function EnterpriseMenu(): react_jsx_runtime.JSX.Element; /** * @internal */ declare function CompanyMenu({ children }: { children: react__default.ReactNode; }): react_jsx_runtime.JSX.Element; export { CompanyMenu, DeveloperMenu, EnterpriseMenu, HiveNavigation, type HiveNavigationProps, ProductsMenu };