22 lines
574 B
TypeScript
22 lines
574 B
TypeScript
"use client";
|
|
|
|
interface AdSlotProps {
|
|
slot: string;
|
|
format?: "auto" | "horizontal" | "vertical" | "rectangle";
|
|
className?: string;
|
|
}
|
|
|
|
export default function AdSlot({ slot, format = "auto", className = "" }: AdSlotProps) {
|
|
return (
|
|
<div className={`ad-container my-4 flex justify-center ${className}`}>
|
|
<ins
|
|
className="adsbygoogle"
|
|
style={{ display: "block" }}
|
|
data-ad-client="ca-pub-3876936176422477"
|
|
data-ad-slot={slot}
|
|
data-ad-format={format}
|
|
data-full-width-responsive="true"
|
|
/>
|
|
</div>
|
|
);
|
|
}
|