CoastalCommitsPastes/client/components/unauthenticated-header/index.tsx

21 lines
821 B
TypeScript
Raw Normal View History

2022-03-06 20:20:01 -05:00
import { Page, ButtonGroup, Button } from "@geist-ui/core";
2022-03-06 19:46:59 -05:00
import { Moon, Sun } from "@geist-ui/icons";
import { DriftProps } from "../../pages/_app";
import ShiftBy from "../shift-by";
2022-03-06 20:20:01 -05:00
import Link from '../Link'
2022-03-06 19:46:59 -05:00
const UnauthenticatedHeader = ({ theme, changeTheme }: DriftProps) => {
return (
<Page.Header height={'40px'} margin={0} paddingBottom={0} paddingTop={"var(--gap)"} >
<ButtonGroup>
<Button><Link href="/signup">Sign up</Link></Button>
<Button><Link href="/signin">Sign in</Link></Button>
<Button onClick={() => changeTheme()}>
<ShiftBy y={6}>{theme === 'light' ? <Moon /> : <Sun />}</ShiftBy>
</Button>
</ButtonGroup>
</Page.Header >
)
}
export default UnauthenticatedHeader