wishlist-client/components/layout/home/HomeLayout.tsx

25 lines
642 B
TypeScript
Raw Normal View History

2022-10-27 21:46:17 +02:00
import { FC, ReactElement, ReactNode } from 'react'
2022-04-24 23:12:11 +02:00
import { inspect } from 'util'
import styles from './HomeLayout.module.scss'
interface HomeLayoutProps {
page: string
2022-10-27 21:46:17 +02:00
children?: ReactNode
2022-04-24 23:12:11 +02:00
}
const HomeLayout: FC<HomeLayoutProps> = (props) => {
return (
2022-10-27 21:46:17 +02:00
<div className="min-h-screen bg-pink-50">
2022-04-25 22:32:24 +02:00
<div className={styles.root + ' space-x-6 pt-14'}>
2022-10-27 21:46:17 +02:00
<h1 className="space-x-2 text-2xl transition-all">
2022-04-25 22:32:24 +02:00
<span>Wishes</span>
<span>/</span>
<span>{props.page}</span>
</h1>
<main className="pt-20">{props.children}</main>
</div>
2022-04-24 23:12:11 +02:00
</div>
)
}
export default HomeLayout