import { Box, Flex, Heading, Image, Link } from '@chakra-ui/react';
function getPageSlug() {
const pathname = (typeof window !== 'undefined' ? window : {} as any)?.location?.pathname || '';
return pathname?.replace(/\//g, '');
}
export const CustomAd = () => {
const slug = getPageSlug();
if (slug !== 'devops') {
return null;
}
return (
Free DevOps eBook
Learn all about doing DevOps the Cloud Native way with this free ebook from our partner, The New Stack
Partner Content
);
};