kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { Link } from "@tanstack/react-router";
2import useGetConfig from "@/hooks/queries/config/use-get-config";
3
4type AuthToggleProps = {
5 message: string;
6 linkText: string;
7 linkTo: string;
8};
9
10export function AuthToggle({ message, linkText, linkTo }: AuthToggleProps) {
11 const { data: config } = useGetConfig();
12
13 if (config?.disableRegistration) {
14 return null;
15 }
16
17 return (
18 <div className="text-center text-sm text-muted-foreground mt-3">
19 {message}{" "}
20 <Link
21 to={linkTo}
22 className="underline underline-offset-4 hover:text-primary"
23 >
24 {linkText}
25 </Link>
26 </div>
27 );
28}