import { Box, Flex, Heading, Image, Link } from '@chakra-ui/react';
import { event } from '../lib/gtag';
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 (
{
event({
category: 'SponsorClick',
action: `StormForge EBook Redirect`,
label: `Clicked StormForge EBook Link`
});
}}
>
Free Kubernetes eBook
Learn how to manage and optimize Kubernetes resources with this free eBook.
Partner Content
);
};