2022-03-12 23:40:28 -05:00
|
|
|
import styles from '@styles/Home.module.css'
|
|
|
|
import NewPost from '@components/new-post'
|
2022-03-09 04:33:22 -05:00
|
|
|
import { Page } from '@geist-ui/core'
|
2022-03-12 23:40:28 -05:00
|
|
|
import useSignedIn from '@lib/hooks/use-signed-in'
|
|
|
|
import Header from '@components/header'
|
|
|
|
import PageSeo from '@components/page-seo'
|
2022-03-21 06:28:06 -04:00
|
|
|
import { ThemeProps } from '@lib/types'
|
2022-03-06 20:41:30 -05:00
|
|
|
|
2022-03-21 04:36:31 -04:00
|
|
|
const New = ({ theme, changeTheme }: ThemeProps) => {
|
|
|
|
const isSignedIn = useSignedIn()
|
|
|
|
|
2022-03-06 19:46:59 -05:00
|
|
|
return (
|
2022-03-07 21:36:36 -05:00
|
|
|
<Page className={styles.container} width="100%">
|
2022-03-12 23:13:35 -05:00
|
|
|
<PageSeo title="Drift - New" />
|
2022-03-06 19:46:59 -05:00
|
|
|
|
2022-03-06 20:41:30 -05:00
|
|
|
<Page.Header>
|
|
|
|
<Header theme={theme} changeTheme={changeTheme} />
|
|
|
|
</Page.Header>
|
2022-03-06 19:46:59 -05:00
|
|
|
|
2022-03-09 04:33:22 -05:00
|
|
|
<Page.Content paddingTop={"var(--gap)"} width={"var(--main-content-width)"} margin="0 auto" className={styles.main}>
|
2022-03-11 18:38:37 -05:00
|
|
|
{isSignedIn && <NewPost />}
|
2022-03-06 19:46:59 -05:00
|
|
|
</Page.Content>
|
|
|
|
</Page >
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-03-21 04:36:31 -04:00
|
|
|
export default New
|