// src/components/CommentEditor.jsx import React, { useState } from "react"; import ReactQuill from "react-quill"; import "react-quill/dist/quill.snow.css"; // Core styling import "./CommentEditor.css"; // Custom styles const modules = { toolbar: [ [{ header: [1, 2, false] }], ["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }], ["link"], ["clean"], ], }; const formats = [ "header", "bold", "italic", "underline", "list", "bullet", "link", ]; const CommentEditor = () => { const [value, setValue] = useState(""); const handleSubmit = () => { // Submit or handle content }; return (
); }; export default CommentEditor;