summaryrefslogtreecommitdiff
path: root/src/app/profile/AccountButton.tsx
blob: 6eb05193c8e968bedd95ac569a6abc1332fdd417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 (
        <Button asChild>
            <Link href="/settings">Управление аккаунтом</Link>
        </Button>
    );
}