@tinacms/toolkit
Version:
Tina is a lightweight but powerful toolkit for creating a site editing ui with javascript components. Tina surfaces superpowers for dev’s to create, expand on and customize a simple yet intuitive ui for editing content.
40 lines (36 loc) • 1.11 kB
TypeScript
/**
*/
import * as React from 'react';
import type { ScreenPlugin } from '../../react-screens';
import { CloudConfigPlugin } from '../../react-cloud-config';
interface NavProps {
isLocalMode: boolean;
children?: any;
className?: string;
userName?: string;
showCollections: boolean;
collectionsInfo: {
collections: {
label?: string;
name: string;
}[];
};
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;
};
}>;
}
export declare const Nav: ({ isLocalMode, className, children, showCollections, collectionsInfo, screens, cloudConfigs, contentCreators, sidebarWidth, RenderNavSite, RenderNavCloud, RenderNavCollection, ...props }: NavProps) => JSX.Element;
export {};