import PropTypes from 'prop-types' import {useRouter} from 'next/router' import { Grid, Box } from '@mui/material' export default function KatKayLa({tit, kantite, route}) { const router = useRouter() return ( router.push(route).then(() => window.scrollTo(0, 0))} > {kantite}
{tit}
) } KatKayLa.propTypes = { tit: PropTypes.string.isRequired, kantite: PropTypes.number.isRequired, route: PropTypes.string.isRequired }