2021-11-29 15:19:07 +01:00
|
|
|
import React from 'react'
|
|
|
|
import { Text } from '@chakra-ui/react'
|
2022-11-02 19:45:46 +01:00
|
|
|
import { TextLink } from 'components/shared/TextLink'
|
2021-11-29 15:19:07 +01:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
type: 'register' | 'signin'
|
|
|
|
}
|
|
|
|
export const AuthSwitcher = ({ type }: Props) => (
|
|
|
|
<>
|
|
|
|
{type === 'signin' ? (
|
|
|
|
<Text>
|
|
|
|
Don't have an account?{' '}
|
2022-11-02 19:45:46 +01:00
|
|
|
<TextLink href="/register">Sign up for free</TextLink>
|
2021-11-29 15:19:07 +01:00
|
|
|
</Text>
|
|
|
|
) : (
|
|
|
|
<Text>
|
2022-11-02 19:45:46 +01:00
|
|
|
Already have an account? <TextLink href="/signin">Sign in</TextLink>
|
2021-11-29 15:19:07 +01:00
|
|
|
</Text>
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
)
|