import React, { useState } from "react"; import { ExpandedLinkProps } from "../../../link/types"; const CustomLinkComponent = ({ url, href, children, openInNewTab, onClick, ...rest }: ExpandedLinkProps) => { const [clicked, setClicked] = useState(false); const handleCustomClick = (e: React.MouseEvent) => { e.preventDefault(); setClicked(true); }; return ( {clicked ? "CLICKED EXAMPLE LINK" : "EXAMPLE LINK"} ); }; export default CustomLinkComponent;