import React from "react"; export interface Link { name: string; url: string; } interface LinkProps { links: Link[]; } export const Links: React.FC = ({ links }) => { const postData = (url = ""): void => { fetch(url, { method: "POST", }) .then((response) => response.json()) .then((data) => { console.log("Success:", data); }) .catch((error) => { console.error("Error:", error); }); }; const handleClick = (name: string, url: string) => fetch("/api/clicks", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ name, url }), }); return (
CSC Logo

@uwcsclub

); };