'use client';

import { useTranslations } from 'next-intl';
import { signOut } from 'next-auth/react';

export function SignOutButton() {
  const t = useTranslations('auth');
  return (
    <button
      onClick={() => signOut({ callbackUrl: '/select-operator' })}
      className="text-xs text-muted-foreground underline-offset-2 hover:underline"
    >
      {t('switchOperator')}
    </button>
  );
}
