import { Link } from "react-router-dom"; import { useAssetApi } from "../AppShell/hooks/useAssets"; const ContactInfo = ({ email, telephone, name, avatar, link }: { email: string, telephone: string, name: string, avatar: string, link?: string }) => { const assetsApi = useAssetApi(); return (

Du hast Fragen?

{avatar && (
{name}
)}

{name}

{email && (

{email}

)} {telephone && (

{telephone}

)}
) } export default ContactInfo; const ConditionalLink = ({ url, children }) => { let params = new URLSearchParams(window.location.search); if (url) { return ( {children} ); } return children; };