const caseStudies = [];
const blogPosts = [];
const getCaseStudy = (slug) => (window.caseStudies || caseStudies).find((item) => item.slug === slug) || (window.caseStudies || caseStudies)[0] || null;
const getBlogPost = (slug) => (window.blogPosts || blogPosts).find((item) => item.slug === slug) || (window.blogPosts || blogPosts)[0] || null;
Object.assign(window, { caseStudies, blogPosts, getCaseStudy, getBlogPost });