'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>
    );
}
