mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
24 lines
558 B
TypeScript
24 lines
558 B
TypeScript
import { useLocation } from "@remix-run/react";
|
|
import { getLogInUrl } from "~/utils";
|
|
import { Button } from "./Button";
|
|
|
|
export function PleaseLogin({
|
|
texts,
|
|
}: {
|
|
texts: [beforeButton: string, buttonText: string, afterButton: string];
|
|
}) {
|
|
const location = useLocation();
|
|
|
|
return (
|
|
<form action={getLogInUrl(location)} method="post">
|
|
<p className="button-text-paragraph">
|
|
{texts[0]}{" "}
|
|
<Button type="submit" variant="minimal">
|
|
{texts[1]}
|
|
</Button>{" "}
|
|
{texts[2]}
|
|
</p>
|
|
</form>
|
|
);
|
|
}
|