CoastalCommitsPastes/client/pages/new.tsx
2022-03-21 03:28:06 -07:00

27 lines
815 B
TypeScript

import styles from '@styles/Home.module.css'
import NewPost from '@components/new-post'
import { Page } from '@geist-ui/core'
import useSignedIn from '@lib/hooks/use-signed-in'
import Header from '@components/header'
import PageSeo from '@components/page-seo'
import { ThemeProps } from '@lib/types'
const New = ({ theme, changeTheme }: ThemeProps) => {
const isSignedIn = useSignedIn()
return (
<Page className={styles.container} width="100%">
<PageSeo title="Drift - New" />
<Page.Header>
<Header theme={theme} changeTheme={changeTheme} />
</Page.Header>
<Page.Content paddingTop={"var(--gap)"} width={"var(--main-content-width)"} margin="0 auto" className={styles.main}>
{isSignedIn && <NewPost />}
</Page.Content>
</Page >
)
}
export default New