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); }); }; // useEffect((): void => { // postData("https://dog.ceo/api/breeds/list/all"); // TODO: Change to '/api/view' // }, []); const handleClick = (): void => { postData("https://dog.ceo/api/breeds/list/all"); // TODO: Change to '/api/click' }; return (
CSC Logo

@uwcsclub

); };