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/Content.tsx
2024-05-07 21:52:38 +02:00

14 lines
282 B
TypeScript

interface ContentProps {
loading: boolean;
error?: string;
text: string;
}
export function Content({ loading, error, text }: ContentProps) {
return (
<div className='content'>
{loading ? 'Parsing file...' : <>{error ? <p>{error}</p> : text}</>}
</div>
);
}