import React from 'react'; import { useIntl } from 'react-intl'; import { Link, Button, type PopoverProps, EditIcon, EyeIcon, RowbeforeIcon, RowafterIcon, CutIcon, CopyIcon, BinIcon, } from '@plone/components'; import { Popover } from '../Popover'; interface Props extends Omit { editLink: string; viewLink: string; onMoveToTop: () => Promise; onMoveToBottom: () => Promise; onCut: () => Promise; onCopy: () => Promise; onDelete: () => Promise; } export function ItemActionsPopover({ editLink, viewLink, onMoveToTop, onMoveToBottom, onCut, onCopy, onDelete, ...popoverProps }: Props) { const intl = useIntl(); return (
  • {intl.formatMessage({ id: 'Edit' })}
  • {intl.formatMessage({ id: 'View' })}
); }