Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
592 B
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

'use client';

import {MoreMenu} from '@astryxdesign/core/MoreMenu';
import {
  PencilIcon,
  DocumentDuplicateIcon,
  TrashIcon,
} from '@heroicons/react/24/outline';

export default function MoreMenuWithDividers() {
  return (
    <MoreMenu
      variant="secondary"
      items={[
        {label: 'Edit', icon: PencilIcon, onClick: () => {}},
        {label: 'Duplicate', icon: DocumentDuplicateIcon, onClick: () => {}},
        {type: 'divider'},
        {label: 'Delete', icon: TrashIcon, onClick: () => {}},
      ]}
    />
  );
}