import Typed from 'typed.js'; import { useEffect, useRef } from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTelegram, faGithub } from '@fortawesome/free-brands-svg-icons'; import { IconContainer, IconLink, HomeLabel, TopSection } from './styles'; import { MainContainer } from '../../components/MainContent/styles'; import { Avatar } from '../../components/Avatar/avatar'; export default function Home() { const typedElement = useRef(null); useEffect(() => { const typed = new Typed(typedElement.current, { strings: ["Hi, I'm Giv! Welcome to my website!"], typeSpeed: 70, backSpeed: 50, loop: false, }); return () => { typed.destroy(); }; }, []); return ( Hey, check out my social links! ); }