import TiptapEditor from "@/components/tiptap-editor/tiptap-editor"; import { Field, FieldContent, FieldError, FieldLabel, } from "@/components/ui/field"; import { Controller } from "react-hook-form"; interface Props { name: string; label: string; className?: string; } export default function TiptapEditorField({ name, label, className }: Props) { return ( ( {label} {fieldState.invalid && } )} /> ); }