diff --git a/src/components/Navbar/NavbarFiller.tsx b/src/components/Navbar/NavbarFiller.tsx index b6c6b6e..626b4b5 100644 --- a/src/components/Navbar/NavbarFiller.tsx +++ b/src/components/Navbar/NavbarFiller.tsx @@ -1,12 +1,19 @@ import styled from '@emotion/styled' import { FilterTags } from '@/components/FilterTags' import { useSearchBarContext } from '@/context/searchbar.context' +import { useRouter } from 'next/router' export const NavbarFiller = () => { + const router = useRouter() const { tags } = useSearchBarContext() + + const onTagClick = (tag: string) => { + router.push(`/search?topics=${tag}`) + } + return ( - + ) }