UNPKG

@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.

7 lines (6 loc) 528 B
/// <reference types="react" /> import { BranchSwitcherProps, Branch } from './types'; export declare function formatBranchName(str: string): string; export declare const BranchSwitcher: (props: BranchSwitcherProps) => JSX.Element; export declare const EditoralBranchSwitcher: ({ listBranches, createBranch, chooseBranch, setModalTitle, }: BranchSwitcherProps) => JSX.Element; export declare const getFilteredBranchList: (branchList: Branch[], search: string, currentBranchName: string, filter?: 'content' | 'all') => Branch[];