diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index 2fb3155..a35009d 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -1,38 +1,45 @@ import Link from 'next/link'; +import { usePathname } from 'next/navigation'; import { Logo } from '../Logo'; import { Typography } from '../Typography'; import { SocialShareButtons } from './SocialShareButtons'; import * as S from './styles'; -export const Footer = () => ( - - - - - - - - Estartando Devs +export const Footer = () => { + const pathName = usePathname(); + + return ( + + + + + + + + Estartando Devs + + + + + {!pathName.includes('/perguntas-frequentes') && ( + + {`Dúvidas? Veja as`} + + {`perguntas mais frequentes`} + + + )} + + + {`© Estartando Devs ${new Date().getFullYear()}`} - - - - - {`Dúvidas? Veja as`} - - {`perguntas mais frequentes`} - - - - - {`© Estartando Devs ${new Date().getFullYear()}`} - - - Todos os direitos reservados. - - - -); + + Todos os direitos reservados. + + + + ); +};