import { TextIcon } from '@zen/core/shared/icons';
import { newBlockId } from '../utils/ids.js';

const Paragraph = {
  type: 'paragraph',
  label: 'Texte',
  icon: <TextIcon width={18} height={18} />,
  keywords: ['paragraphe', 'paragraph', 'texte', 'text', 'p'],
  isText: true,
  textTag: 'p',
  textClassName: 'text-base leading-relaxed text-neutral-900 dark:text-white',
  placeholder: "Tapez '/' pour les commandes…",
  create(init = {}) {
    return { id: newBlockId(), type: 'paragraph', content: [], ...init };
  },
};

export default Paragraph;
