Files
5fbb9ff218 new text ad provider (#3303)
* new text ad provider

* fix test

* fixes for production

* Add loading skeleton to SevioTextAd with script-driven timeout fallback

Co-authored-by: Hanzo Dev <[email protected]>

* effect fix

---------

Co-authored-by: Hanzo Dev <[email protected]>
2026-03-02 16:26:16 +01:00

21 lines
577 B
TypeScript

import { chakra } from '@chakra-ui/react';
import React from 'react';
import config from 'configs/app';
import { useAppContext } from 'lib/contexts/app';
import * as cookies from 'lib/cookies';
import SevioTextAd from './SevioTextAd';
const TextAd = ({ className }: { className?: string }) => {
const hasAdblockCookie = cookies.get(cookies.NAMES.ADBLOCK_DETECTED, useAppContext().cookies);
if (!config.features.adsText.isEnabled || hasAdblockCookie === 'true') {
return null;
}
return <SevioTextAd className={ className }/>;
};
export default chakra(TextAd);