import { Grid } from '@chakra-ui/react'; import React from 'react'; import { Heading } from 'toolkit/chakra/heading'; interface Props { title: string; children: React.ReactNode; disableScroll?: boolean; } const ContractVerificationMethod = ({ title, children, disableScroll }: Props) => { const ref = React.useRef(null); React.useEffect(() => { !disableScroll && ref.current?.scrollIntoView({ behavior: 'smooth' }); }, [ disableScroll ]); return (
{ title } { children }
); }; export default React.memo(ContractVerificationMethod);