'use client';

import { ArrowLeft } from 'lucide-react';
import { useRouter } from 'next/navigation';

export function BackButton() {
  const router = useRouter();

  return (
    <div className="m-2 cursor-pointer">
      <ArrowLeft className="size-5" onClick={() => router.back()} />
      <span className="sr-only">Назад</span>
    </div>
  );
}
