import React, { FunctionComponent } from 'react'; import styled from 'styled-components'; import { FREEDOM_RED_900 } from '../common/colors'; import { ActionButton, ActionButtonIcons } from './ActionButton'; import { LABELS } from '../constants'; const Container = styled.div` position: absolute; right: 0; bottom: 24px; display: flex; padding-right: 8px; padding-left: 8px; > * { margin-left: 8px; } `; export interface Props { editable: boolean; onFocus: () => void; onEnableVectorMode: () => void; isVectorModeEnabled: boolean; onDelete: () => void; deleteInactive: boolean; onExport: () => void; onImport: () => void; } export const ActionBar: FunctionComponent = ({ editable, deleteInactive, isVectorModeEnabled, onEnableVectorMode, onFocus, onDelete, onExport, onImport, }) => ( {editable && ( <> {LABELS.PEN} {LABELS.DELETE} )} {LABELS.IMPORT} {LABELS.EXPORT} {LABELS.FOCUS} );