import { TodayIcon } from '../../../_common/icons/index.js';
import { formatDate, insertContent, type AIMenuOptions } from './utils.js';

export const menuGroups: AIMenuOptions['menus'] = [
  {
    name: 'Write with AI',
    items: [
      {
        name: 'Continue writing',
        icon: TodayIcon,
        action: ({ pageElement, model }) => {
          const date = new Date();
          insertContent(pageElement.host, model, formatDate(date));
        },
      },
    ],
  },
];
