import styled from '@emotion/styled'; import {Button} from 'sentry/components/button'; import {IconCopy, IconDelete, IconEdit, IconGrabbable} from 'sentry/icons'; import {t} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import {DRAG_HANDLE_CLASS} from '../dashboard'; type ToolbarProps = { isMobile?: boolean; onDelete?: () => void; onDuplicate?: () => void; onEdit?: () => void; }; export function Toolbar({isMobile, onEdit, onDelete, onDuplicate}: ToolbarProps) { return ( {!isMobile && ( } borderless className={DRAG_HANDLE_CLASS} /> )} {onEdit && (