import classNames from 'classnames'; import Link from 'next/link'; import { safeDecodeURI } from 'next-basics'; import usePageQuery from 'hooks/usePageQuery'; import External from 'assets/arrow-up-right-from-square.svg'; import { Icon } from 'react-basics'; import styles from './FilterLink.module.css'; export default function FilterLink({ id, value, label, externalUrl }) { const { resolve, query } = usePageQuery(); const active = query[id] !== undefined; const selected = query[id] === value; return (