'use client' /** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import { useTranslation } from '@byline/i18n/react' import { DeleteIcon, Dropdown as DropdownMenu, EllipsisIcon, IconButton, PlusIcon, } from '@byline/ui/react' import cx from 'clsx' import styles from './draggable-context-menu.module.css' interface DraggableContextMenuProps { onAddBelow?: () => void onRemove?: () => void } export function DraggableContextMenu({ onAddBelow, onRemove, }: DraggableContextMenuProps): React.JSX.Element { const { t } = useTranslation('byline-admin') const itemClass = cx('byline-draggable-menu-item', styles.item) const rowClass = cx('byline-draggable-menu-row', styles.row) const iconSlotClass = cx('byline-draggable-menu-icon-slot', styles['icon-slot']) const labelClass = cx('byline-draggable-menu-label', styles.label) return ( } >
{t('fields.draggableMenu.addBelow')}
{t('fields.draggableMenu.remove')}
) }