import React from 'react'; import Link from 'next/link'; import classNames from 'classnames'; import usePageQuery from 'hooks/usePageQuery'; import Icon from './Icon'; import External from 'assets/arrow-up-right-from-square.svg'; 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 (