import { getLocale } from "next-intl/server";
import { isRtlLocale, type Locale } from "@/lib/i18n-utils";
import { HeroClient, type HeroClientProps } from "./hero-client";

export type HeroProps = Omit<HeroClientProps, "isRtl">;

export default async function Hero(props: HeroProps) {
  const locale = (await getLocale()) as Locale;
  const isRtl = isRtlLocale(locale);
  return <HeroClient {...props} isRtl={isRtl} />;
}
