import { useState } from 'react'; import { Icon, Text, Tooltip } from 'react-basics'; import classNames from 'classnames'; import { useRouter } from 'next/router'; import Link from 'next/link'; import Icons from 'components/icons'; import styles from './NavGroup.module.css'; export default function NavGroup({ title, items, defaultExpanded = true, allowExpand = true, minimized = false, }) { const { pathname } = useRouter(); const [expanded, setExpanded] = useState(defaultExpanded); const handleExpand = () => setExpanded(state => !state); return (