import { useEffect } from "react"; import { useLocation } from "react-router"; import GenerateNISS from "../components/Geradores/Tipos/GenerateNISS"; import GenerateCC from "../components/Geradores/Tipos/GenerateCC"; import GenerateNIF from "../components/Geradores/Tipos/GenerateNIF"; export default function Home() { const location = useLocation(); // Pegando a rota atual // Efeito para rolar até a seção correspondente ao path useEffect(() => { const featuresSection = document.getElementById(location.hash.substring(1)); if (featuresSection) { featuresSection.scrollIntoView({ behavior: "smooth" }); } }, [location]); return (