import Script from "next/script";

interface MarmarisWidgetProps {
  locale: string;
  style?: React.CSSProperties;
  className?: string;
}

export function MarmarisWidget({ locale, style, className }: MarmarisWidgetProps) {
  return (
    <div style={style} className={className}>
      <div
        data-marmaris-widget="marmaris"
        data-limit="3"
        data-lang={locale}
        data-neighborhood="akyaka"
      ></div>
      <Script src="https://marmarislocal.com/widget.js" strategy="afterInteractive" />
    </div>
  );
}
