"use client"; import Link from "next/link"; import { useState } from "react"; import { useRegister } from "@/hooks/use-auth"; import { useConfig } from "@/hooks/use-channels"; export default function RegisterPage() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const { mutate: register, isPending, error } = useRegister(); const { data: config } = useConfig(); if (config && !config.allow_registration) { return (
The administrator has disabled new account registration.
Sign in insteadstart building your channels
Already have an account?{" "} Sign in