// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. 'use strict'; import * as React from 'react'; import { Tool } from 'react-svg-pan-zoom'; import { Image, ImageName } from '../react-common/image'; import { ImageButton } from '../react-common/imageButton'; import { getLocString } from '../react-common/locReactSide'; interface IToolbarProps { baseTheme: string; changeTool(tool: Tool): void; prevButtonClicked?(): void; nextButtonClicked?(): void; exportButtonClicked(): void; copyButtonClicked(): void; deleteButtonClicked?(): void; } export class Toolbar extends React.Component { constructor(props: IToolbarProps) { super(props); } public render() { return (
{/* This isn't possible until VS Code supports copying images to the clipboard. See https://github.com/microsoft/vscode/issues/217 */}
); } private pan = () => { this.props.changeTool('pan'); }; private zoomIn = () => { this.props.changeTool('zoom-in'); }; private zoomOut = () => { this.props.changeTool('zoom-out'); }; }