From 106e4c26a8b0529ed8afd80a465374b483b4cc77 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 8 Nov 2024 23:46:47 +0300 Subject: [PATCH] yandex --- quartz/components/_Ads.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/quartz/components/_Ads.tsx b/quartz/components/_Ads.tsx index a0bafee45..66a023c27 100644 --- a/quartz/components/_Ads.tsx +++ b/quartz/components/_Ads.tsx @@ -1,19 +1,22 @@ import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" // @ts-ignore import { classNames } from "../util/lang" +import { useEffect } from "react" const Ads: QuartzComponent = ({ displayClass, fileData }: QuartzComponentProps) => { - return ( - -
- + }, []) + + return ( +
+
) } + export default (() => Ads) satisfies QuartzComponentConstructor