"use client";

import { useTranslations } from "next-intl";
import { Button } from "@/components/ui/button";
import { ArrowLeft, ArrowRight } from "lucide-react";
import { useLocaleDirection } from "@/hooks/useLocale";

export default function InnerPageActions() {
  const t = useTranslations("header");
  const { locale } = useLocaleDirection();

  const arrowIcon =
    locale === "ar" ? (
      <ArrowLeft className="w-4.5 h-4.5" />
    ) : (
      <ArrowRight className="w-4.5 h-4.5" />
    );

  return (
    <div className="text-white hidden lg:flex items-center justify-center gap-6">
      <Button as="link" href={`/${locale}`}>
        {t("back")}
        {arrowIcon}
      </Button>
    </div>
  );
}
