"use client" import { cn } from "@lib/utils" import { dmSansClassName } from "@/lib/fonts" import { TextEditor } from "../../text-editor" import { motion, AnimatePresence } from "motion/react" import { Button } from "@repo/ui/components/button" import { Loader2 } from "lucide-react" export interface TextEditorProps { documentId: string editorResetNonce: number initialEditorContent: string | undefined hasUnsavedChanges: boolean isSaving: boolean onContentChange: (content: string) => void onSave: () => void onReset: () => void } export function TextEditorContent({ documentId, editorResetNonce, initialEditorContent, hasUnsavedChanges, isSaving, onContentChange, onSave, onReset, }: TextEditorProps) { return ( <>
{hasUnsavedChanges && ( Unsaved changes )} ) }