import React, { Children, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { Grid, GridItem, JumpLinks, JumpLinksItem, Title, } from "@patternfly/react-core"; import { FormPanel } from "./FormPanel"; import style from "./scroll-form.module.css"; type ScrollFormProps = { sections: string[]; children: React.ReactNode; }; export const ScrollForm = ({ sections, children }: ScrollFormProps) => { const { t } = useTranslation("common"); const [active, setActive] = useState(sections[0]); const Nav = () => (