import type { JSX } from 'react'
import { Box, Button, Text, Title, Flex } from '@mantine/core'
import { IconArrowRight, IconArrowLeft } from '@tabler/icons-react'
import { Link } from 'tuono'
interface NavigationButtonData {
href: string
title: string
}
interface NavigationButtonsProps {
prev?: NavigationButtonData
next?: NavigationButtonData
}
export default function NavigationButtons({
prev,
next,
}: NavigationButtonsProps): JSX.Element {
return (
{prev && }
{next && }
)
}
interface NavigationBtnProps extends NavigationButtonData {
type: 'next' | 'prev'
}
const NavigationBtn = ({
type,
title,
href,
}: NavigationBtnProps): JSX.Element => {
const heading = type === 'next' ? 'Next' : 'Previous'
const textAlign = type === 'next' ? 'left' : 'right'
const variant = type === 'next' ? 'filled' : 'outline'
return (
}
leftSection={type === 'prev' && }
p="20"
>
{heading}
{title}
)
}