import React, { useState, useEffect } from "react"; const HiddenEmail = ({ email, alt, althref, }: { email: string; alt: string; althref: string; }) => { const [visible, setVisible] = useState(false); useEffect(() => { setVisible(true); }, []); return ( {visible ? email : alt} ); }; export default HiddenEmail;