mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 09:38:54 +08:00
58 lines
1.5 KiB
TypeScript
58 lines
1.5 KiB
TypeScript
import { Localized } from "fluent-react/compat";
|
|
import React, { StatelessComponent } from "react";
|
|
|
|
import { Button, Flex, Typography } from "talk-ui/components";
|
|
|
|
import MatchMedia from "talk-ui/components/MatchMedia";
|
|
import * as styles from "./UserBoxUnauthenticated.css";
|
|
|
|
export interface UserBoxUnauthenticatedProps {
|
|
onSignIn: () => void;
|
|
onRegister: () => void;
|
|
}
|
|
|
|
const UserBoxUnauthenticated: StatelessComponent<
|
|
UserBoxUnauthenticatedProps
|
|
> = props => {
|
|
return (
|
|
<Flex itemGutter alignItems="center">
|
|
<MatchMedia gteWidth="sm">
|
|
<Localized id="comments-userBoxUnauthenticated-joinTheConversation">
|
|
<Typography
|
|
className={styles.joinText}
|
|
variant="bodyCopyBold"
|
|
container="span"
|
|
>
|
|
Join the conversation
|
|
</Typography>
|
|
</Localized>
|
|
<Typography variant="bodyCopyBold" container="span">
|
|
|
|
|
</Typography>
|
|
</MatchMedia>
|
|
<Localized id="comments-userBoxUnauthenticated-signIn">
|
|
<Button
|
|
color="primary"
|
|
size="small"
|
|
variant="underlined"
|
|
onClick={props.onSignIn}
|
|
>
|
|
Sign in
|
|
</Button>
|
|
</Localized>
|
|
<Localized id="comments-userBoxUnauthenticated-register">
|
|
<Button
|
|
color="primary"
|
|
size="small"
|
|
variant="outlined"
|
|
onClick={props.onRegister}
|
|
>
|
|
Register
|
|
</Button>
|
|
</Localized>
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
export default UserBoxUnauthenticated;
|