Implemented the authenticated admin contact system.

This commit is contained in:
2026-05-16 22:02:32 +03:30
parent 04e7931ccc
commit e633805ed3
28 changed files with 2200 additions and 14 deletions

View File

@@ -2,6 +2,7 @@ import { Head, Link, usePage } from '@inertiajs/react';
import {
ArrowRight,
Compass,
LifeBuoy,
LayoutDashboard,
Radio,
Search,
@@ -15,6 +16,7 @@ import { Input } from '@/components/ui/input';
import { cn } from '@/lib/utils';
import { dashboard, home, login, register } from '@/routes';
import { show as showChannel } from '@/routes/channels';
import { index as supportIndex } from '@/routes/support';
import type { Category, ChannelCard } from '@/types';
type Props = {
@@ -75,23 +77,39 @@ export default function Welcome({
Live
</Link>
{auth.user && (
<Link
href={dashboard()}
className="rounded-md px-3 py-2 hover:bg-accent hover:text-accent-foreground"
>
Studio
</Link>
<>
<Link
href={dashboard()}
className="rounded-md px-3 py-2 hover:bg-accent hover:text-accent-foreground"
>
Studio
</Link>
<Link
href={supportIndex()}
className="rounded-md px-3 py-2 hover:bg-accent hover:text-accent-foreground"
>
Contact
</Link>
</>
)}
</nav>
<div className="ml-auto flex items-center gap-2">
{auth.user ? (
<Button asChild size="sm">
<Link href={dashboard()}>
<LayoutDashboard className="size-4" />
Studio
</Link>
</Button>
<>
<Button asChild size="sm">
<Link href={dashboard()}>
<LayoutDashboard className="size-4" />
Studio
</Link>
</Button>
<Button asChild variant="outline" size="sm">
<Link href={supportIndex()}>
<LifeBuoy className="size-4" />
Contact
</Link>
</Button>
</>
) : (
<>
<Button asChild variant="ghost" size="sm">