@jupyterlab/git
Version:
A JupyterLab extension for version control using git
36 lines (35 loc) • 864 B
TypeScript
/// <reference types="react" />
import { TranslationBundle } from '@jupyterlab/translation';
import { Git } from '../tokens';
/**
* BranchPicker component properties
*/
export interface IBranchPickerProps {
/**
* Action for which to pick a branch
*/
action?: 'merge' | 'rebase';
/**
* Current branch name.
*/
currentBranch: string;
/**
* Current list of local branches and without the current branch.
*/
branches: Git.IBranch[];
/**
* Callback to invoke upon closing the dialog.
*/
onClose(branch?: string): void;
/**
* The application language translator.
*/
trans: TranslationBundle;
}
/**
* BranchPicker React component
*
* @param props Component properties
* @returns React element
*/
export declare function BranchPicker(props: IBranchPickerProps): JSX.Element;