import { List } from 'lucide-react';

import { EditorCommand } from '@colanode/client/types';

export const BulletListCommand: EditorCommand = {
  key: 'bullet-list',
  name: 'Bullet List',
  description: 'Insert a bullet list',
  keywords: ['bulletlist', 'bullet', 'list'],
  icon: List,
  disabled: false,
  handler: ({ editor, range }) => {
    editor.chain().focus().deleteRange(range).toggleBulletList().run();
  },
};
