tinacms
Version:
[](https://github.com/tinacms/tinacms/blob/main/LICENSE) [](https://www.npmjs.com/package/tinacms) [![Bui
45 lines (44 loc) • 1.41 kB
TypeScript
import type { CloudConfigPlugin } from '../../react-cloud-config';
import type { ScreenPlugin } from '../../react-screens';
import * as React from 'react';
interface NavCollection {
label?: string;
name: string;
isAuthCollection?: boolean;
}
interface NavProps {
isLocalMode: boolean;
showHamburger?: boolean;
toggleMenu: () => void;
children?: any;
className?: string;
userName?: string;
showCollections: boolean;
collectionsInfo: {
collections: NavCollection[];
};
contentCreators?: any;
screens?: ScreenPlugin[];
cloudConfigs?: CloudConfigPlugin[];
sidebarWidth?: number;
RenderNavSite: React.ComponentType<{
view: ScreenPlugin;
}>;
RenderNavCloud: React.ComponentType<{
config: CloudConfigPlugin;
}>;
RenderNavCollection: React.ComponentType<{
collection: {
label: string;
name: string;
};
}>;
AuthRenderNavCollection: React.ComponentType<{
collection: {
label: string;
name: string;
};
}>;
}
export declare const Nav: ({ isLocalMode, showHamburger, toggleMenu, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, AuthRenderNavCollection, ...props }: NavProps) => React.JSX.Element;
export {};