This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pdf-text-parsing/components/Dashboard.tsx
2024-05-08 16:32:10 +02:00

22 lines
611 B
TypeScript

import { useState } from 'react';
import { Content } from './Content';
import { Form } from './Form';
export default function Dashboard() {
const [loading, setLoading] = useState(false);
const [error, setError] = useState<string>();
const [parsedText, setParsedText] = useState<string>('');
return (
<div className='dashboard'>
<p>This is a tool to extract the text from a PDF file</p>
<Form
setLoading={setLoading}
setError={setError}
setParsedText={setParsedText}
/>
<Content loading={loading} error={error} text={parsedText} />
</div>
);
}