feat: implementation
This commit is contained in:
13
components/Content.tsx
Normal file
13
components/Content.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user