From ab330c64eeed9edfc2a6ef6a6f5cd38587ba0996 Mon Sep 17 00:00:00 2001 From: l3wdfut4pwr Date: Mon, 27 Apr 2026 13:45:25 +0300 Subject: add username change and logout --- src/app/profile/AccountButton.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/app/profile/AccountButton.tsx (limited to 'src/app/profile/AccountButton.tsx') diff --git a/src/app/profile/AccountButton.tsx b/src/app/profile/AccountButton.tsx new file mode 100644 index 0000000..6eb0519 --- /dev/null +++ b/src/app/profile/AccountButton.tsx @@ -0,0 +1,17 @@ +'use client'; + +import Link from 'next/link'; +import { Button } from '@/components/ui'; +import { useUser } from '@/lib/contexts/Auth.context'; + +export default function AccountButton() { + const user = useUser(); + + if (!user) return null; + + return ( + + ); +} -- cgit v1.3-3-g829e