diff --git a/src/pages/tools/pdf/editor/index.tsx b/src/pages/tools/pdf/editor/index.tsx index aafba85..d1dbcfc 100644 --- a/src/pages/tools/pdf/editor/index.tsx +++ b/src/pages/tools/pdf/editor/index.tsx @@ -6,45 +6,16 @@ import { ToolComponentProps } from '@tools/defineTool'; import { EmbedPDF } from '@simplepdf/react-embed-pdf'; export default function PdfEditor({ title }: ToolComponentProps) { - const [input, setInput] = useState(null); - const [pdfUrl, setPdfUrl] = useState(null); - - const onFileChange = (file: File | null) => { - if (file) { - setInput(file); - const url = URL.createObjectURL(file); - setPdfUrl(url); - } else { - setInput(null); - setPdfUrl(null); - } - }; - return ( - {pdfUrl ? ( - - - - ) : ( - - )} - + + + } toolInfo={{ title: 'PDF Editor',