mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 05:07:36 -05:00
27 lines
568 B
TypeScript
27 lines
568 B
TypeScript
import { DiscordIcon } from "../icons/Discord";
|
|
|
|
// TODO: redirect to same page on login
|
|
export function UserItem() {
|
|
const user = null;
|
|
|
|
if (user)
|
|
return (
|
|
<img
|
|
className="layout__avatar"
|
|
src={`https://cdn.discordapp.com/avatars/discordId/discordAvatar.png?size=80`}
|
|
/>
|
|
);
|
|
|
|
return (
|
|
<form action="/" method="post" data-cy="log-in-form">
|
|
<button
|
|
type="submit"
|
|
className="layout__log-in-button"
|
|
data-cy="log-in-button"
|
|
>
|
|
<DiscordIcon /> Log in
|
|
</button>
|
|
</form>
|
|
);
|
|
}
|