import { getwhyChooseUs } from '@/services/cmsService';
import { sanitizeCmsHtml } from '@/utils/safeHtml';

export default async function WhyUs() {
  let chooseData = "";

  try {
    const response = await getwhyChooseUs();
    chooseData = response?.data;
  } catch (error) {
  }
  
  return (
    <section className="whychoosecontainer">
      <div className="whychooseinner">
        <div
          dangerouslySetInnerHTML={{
            __html: sanitizeCmsHtml(chooseData?.content || ""),
          }}
        />

      </div>
    </section>
  )
}