"use client"; import { ArrowLeft, RefreshCw, Share, Plus, Info, Download } from "lucide-react"; import { Button } from "@/components/ui/button"; import { useRouter } from "next/navigation"; import { useToast } from "@/hooks/use-toast"; interface EditorToolbarProps { title: string; onContinueStory?: () => void; onDownloadPDF?: () => void; isGeneratingPDF?: boolean; isOwner?: boolean; } export function EditorToolbar({ title, onContinueStory, onDownloadPDF, isGeneratingPDF = false, isOwner = true, }: EditorToolbarProps) { const router = useRouter(); const { toast } = useToast(); return (

{title}

{onDownloadPDF && ( )} {isOwner && onContinueStory && ( )}
); }