mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
26 lines
535 B
TypeScript
26 lines
535 B
TypeScript
import { Box, type BoxProps } from '@radix-ui/themes';
|
|
import { useEffect } from 'react';
|
|
|
|
type AdProps = BoxProps & {};
|
|
|
|
export function Ad({ ...props }: AdProps) {
|
|
const id = 'test';
|
|
|
|
useEffect(() => {
|
|
(window as any).nitroAds.createAd('test', {
|
|
demo: true,
|
|
refreshTime: 30,
|
|
renderVisibleOnly: false,
|
|
sizes: [],
|
|
report: {
|
|
enabled: true,
|
|
icon: true,
|
|
wording: 'Report Ad',
|
|
position: 'top-right',
|
|
},
|
|
});
|
|
}, [id]);
|
|
|
|
return <Box id={id} {...props} />;
|
|
}
|