import styled from '@emotion/styled'; import {Button} from 'sentry/components/button'; import ButtonBar from 'sentry/components/buttonBar'; import ConfirmDelete from 'sentry/components/confirmDelete'; import DateTime from 'sentry/components/dateTime'; import QuestionTooltip from 'sentry/components/questionTooltip'; import {IconCopy, IconDelete, IconEdit} from 'sentry/icons'; import {t, tct} from 'sentry/locale'; import {space} from 'sentry/styles/space'; import {Relay} from 'sentry/types'; import useCopyToClipboard from 'sentry/utils/useCopyToClipboard'; type Props = Relay & { disabled: boolean; onDelete: (publicKey: Relay['publicKey']) => () => void; onEdit: (publicKey: Relay['publicKey']) => () => void; }; function CardHeader({ publicKey, name, description, created, disabled, onEdit, onDelete, }: Props) { const {onClick} = useCopyToClipboard({text: publicKey}); const deleteButton = (