import Image from "next/image";
import type { CmsServiceContent } from "@/types/cms-landing";
const DEFAULT_HEADING = "Innovative solutions for your business growth.";
const DEFAULT_BODY =
"Professional services tailored to your organization. Update this text from the CMS admin under Content Website → Our Services.";
function bannerUrl(s: CmsServiceContent) {
return s.images?.[0]?.image_url?.trim() || "/image/s1.png";
}
export default function ServiceSection({
services,
}: {
services?: CmsServiceContent[] | null;
}) {
const list = services?.filter((s) => s.id) ?? [];
if (list.length === 0) {
const imgSrc = "/image/s1.png";
return (