new features

This commit is contained in:
Daniil
2026-02-27 23:34:17 +03:00
parent 42ce5fa0fe
commit 71b974903a
191 changed files with 11300 additions and 373 deletions
+13
View File
@@ -1,10 +1,23 @@
"use client"
import { usePathname } from "next/navigation"
import { Header } from "@widgets/Header"
const AUTH_ROUTES = ["/login", "/register", "/under_maintenance"]
export default function EssentialTemplate({
children,
}: {
children: React.ReactNode
}) {
const pathname = usePathname()
const isAuthPage = AUTH_ROUTES.includes(pathname)
if (isAuthPage) {
return <>{children}</>
}
return (
<div>
<Header />