mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
30 lines
855 B
TypeScript
30 lines
855 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { Container, Stack, Text, Button } from '@mantine/core';
|
||
|
import FolderIcon from '@mui/icons-material/FolderRounded';
|
||
|
import { useFilesModalContext } from '../../contexts/FilesModalContext';
|
||
|
|
||
|
interface LandingPageProps {
|
||
|
title: string;
|
||
|
}
|
||
|
|
||
|
const LandingPage = ({ title }: LandingPageProps) => {
|
||
|
const { openFilesModal } = useFilesModalContext();
|
||
|
return (
|
||
|
<Container size="lg" p="xl" h="100%" style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
||
|
<Stack align="center" gap="lg">
|
||
|
<Text size="xl" fw={500} c="dimmed">
|
||
|
{title}
|
||
|
</Text>
|
||
|
<Button
|
||
|
leftSection={<FolderIcon />}
|
||
|
size="lg"
|
||
|
onClick={openFilesModal}
|
||
|
>
|
||
|
Open Files
|
||
|
</Button>
|
||
|
</Stack>
|
||
|
</Container>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default LandingPage;
|