import { useIntl } from 'react-intl'; import { TooltipTrigger, type Selection } from 'react-aria-components'; import { BinIcon, CopyIcon, CutIcon, PasteIcon, PropertiesIcon, RenameIcon, StateIcon, TagIcon, Tooltip, UploadIcon, } from '@plone/components'; import { Button } from '../Button'; type Props = { upload: () => Promise; rename: () => Promise; workflow: () => Promise; tags: () => Promise; properties: () => Promise; cut: (value?: string) => Promise; copy: (value?: string) => Promise; paste: () => Promise; deleteItem: (value?: string) => Promise; canPaste: boolean; selected: Selection; }; export function ContentsActions({ upload, rename, workflow, tags, properties, cut, copy, paste, deleteItem, canPaste, selected, }: Props) { const intl = useIntl(); return (
{intl.formatMessage({ id: 'Upload' })} {intl.formatMessage({ id: 'Rename' })} {intl.formatMessage({ id: 'State' })} {intl.formatMessage({ id: 'Tags' })} {intl.formatMessage({ id: 'Properties' })} {intl.formatMessage({ id: 'Cut' })} {intl.formatMessage({ id: 'Copy' })} {intl.formatMessage({ id: 'Paste' })} {intl.formatMessage({ id: 'Delete' })}
); }