'use client';

import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { ContentEditable } from '@lexical/react/LexicalContentEditable.js';
import { useTranslation } from '@payloadcms/ui';
import * as React from 'react';
export function LexicalContentEditable(t0) {
  const $ = _c(3);
  const {
    className
  } = t0;
  const {
    t
  } = useTranslation();
  let t1;
  if ($[0] !== className || $[1] !== t) {
    t1 = _jsx(ContentEditable, {
      "aria-placeholder": t("lexical:general:placeholder"),
      className: className ?? "ContentEditable__root",
      placeholder: _jsx("p", {
        className: "editor-placeholder",
        children: t("lexical:general:placeholder")
      })
    });
    $[0] = className;
    $[1] = t;
    $[2] = t1;
  } else {
    t1 = $[2];
  }
  return t1;
}
//# sourceMappingURL=ContentEditable.js.map