export const TextCell = ({ initialValue, columnId, rowIndex }: Props) => {
const editor = useEditor({
extensions: [StarterKit],
content: `${initialValue}`,
editorProps: {
attributes: {
class: "focus:outline-none min-w-[150px] p-1",
},
},
});
return <EditorContent editor={editor} />;
};
export const TextCell = ({ initialValue, columnId, rowIndex }: Props) => {
const editor = useEditor({
extensions: [StarterKit],
content: `${initialValue}`,
editorProps: {
attributes: {
class: "focus:outline-none min-w-[150px] p-1",
},
},
});
return <EditorContent editor={editor} />;
};