import { getHomeLocationData } from "@/lib/api";
import { LocationImageV3, LocationContentV3 } from "./components";

export default async function LocationSectionV3() {
  const locationData = await getHomeLocationData();
  return (
    <section className="grid grid-cols-1 lg:grid-cols-2 gap-5 sm:gap-10 lg:gap-20 w-full">
      <LocationContentV3 content={locationData?.content ?? null} />
      <LocationImageV3
        title={locationData?.title ?? null}
        image={locationData?.image ?? null}
      />
    </section>
  );
}
