mirror of
https://github.com/AderKonstantin/aderktech-chronark.com-.git
synced 2025-06-08 21:58:41 +03:00
18 lines
314 B
TypeScript
18 lines
314 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
|
|
export const ReportView: React.FC<{ slug: string }> = ({ slug }) => {
|
|
useEffect(() => {
|
|
fetch("/api/incr", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify({ slug }),
|
|
});
|
|
}, [slug]);
|
|
|
|
return null;
|
|
};
|