"use client";

import Image from "next/image";
import SafeHtmlRenderer from "../SafeHtmlRenderer";
import { BASE_URL } from "@/Constant";

export default function OrgChart({ main }: any) {
  return (
    <>
      <div className="safe text-center pt-9 pb-6">
        <SafeHtmlRenderer htmlContent={main?.structure?.shortContent} />
      </div>

      <div className="flex justify-center pb-10">
        <Image
          src={`${BASE_URL}${main?.structure?.mainImage}`}
          alt=""
          unoptimized={true}
          width={1000}
          height={300}
        />
      </div>
    </>
  );
}
