);
}
/* Renders the case study image. basePath must be passed from the parent so
paths work from both the homepage (basePath="") and case-study pages (basePath="../"). */
function CaseMockup({ id, small, basePath = "", imgSrc }) {
const c = CASES.find((x) => x.id === id);
if (!c) return null;
const src = imgSrc ? basePath + "assets/" + imgSrc : (c.img ? basePath + "assets/" + c.img : null);
if (!src) return null;
return (
);
}
/* LEGACY SVG stubs kept only in case any old page still references these IDs.
Remove once old case-study HTML files are retired. */
function _LegacyCaseMockup({ id }) {
const common = { width: "100%", height: "100%", preserveAspectRatio: "xMidYMid slice" };
if (id === "plumber-leads") {
return (
);
}
if (id === "roofer-ai") {
return (
);
}
if (id === "florist-orders") {
return (
);
}
if (id === "dance-school") {
return (
);
}
if (id === "carpenter") {
return (
);
}
if (id === "cafe-loyalty") {
return (
);
}
if (id === "school-admin") {
return (
);
}
return null;
}
window.CaseStudies = CaseStudies;
window.CaseMockup = CaseMockup;