import React, {useState, useEffect} from 'react'; interface DownloadCVProps { windowSize: number; } /** * @return {jsx} a presentation of me */ export default function DownloadCV({windowSize}: DownloadCVProps) { const [topClass, setTopClass] = useState(''); const [bottomClass, setBottomClass] = useState(''); useEffect(() => { if (window.innerWidth > 1200) { setTopClass('btn-lg mb-3'); setBottomClass('btn-lg mt-3'); } else { setTopClass('mb-1'); setBottomClass('mt-1'); } }, [windowSize]); return (
Download my Resume Newspaper Article
); };