'use client';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { TipTapEditor } from '../components/TipTapEditor.js';
export function RichTextField({ label, value = '', onChange, required, helpText, }) {
    return (_jsxs("div", { children: [_jsxs("label", { className: "mb-1 block text-sm font-medium", children: [label, required && _jsx("span", { className: "ml-0.5 text-[var(--destructive)]", children: "*" })] }), _jsx(TipTapEditor, { content: value, onChange: onChange }), helpText && _jsx("p", { className: "mt-1 text-xs text-[var(--muted-foreground)]", children: helpText })] }));
}
//# sourceMappingURL=RichTextField.js.map