mirror of https://github.com/renzynx/bliss.git
29 lines
678 B
TypeScript
29 lines
678 B
TypeScript
import { ROUTES } from '@lib/constants';
|
|
import { Button, Paper, PaperProps, Stack, Title } from '@mantine/core';
|
|
import { useRouter } from 'next/router';
|
|
|
|
const QuickActions = (props: PaperProps) => {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<Paper withBorder {...props} shadow="sm" p="xl">
|
|
<Title order={3} mb="md">
|
|
Quick actions
|
|
</Title>
|
|
<Stack>
|
|
<Button onClick={() => router.push(ROUTES.SETTINGS)} variant="light">
|
|
Download upload config
|
|
</Button>
|
|
<Button
|
|
onClick={() => router.push(ROUTES.SETTINGS + '/embed')}
|
|
variant="light"
|
|
>
|
|
Edit embed settings
|
|
</Button>
|
|
</Stack>
|
|
</Paper>
|
|
);
|
|
};
|
|
|
|
export default QuickActions;
|