18 lines
784 B
JavaScript
18 lines
784 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default function IconBookmark() {
|
|
const router = useRouter()
|
|
|
|
return (
|
|
<svg
|
|
className={router.pathname == '/bookmark' ? 'active-link' : 'icon-nav'}
|
|
fill='currentColor'
|
|
width='1em'
|
|
height='1em'
|
|
viewBox='0 0 17 20'
|
|
xmlns='http://www.w3.org/2000/svg'
|
|
>
|
|
<path d='M15.387 0c.202 0 .396.04.581.119.291.115.522.295.694.542.172.247.258.52.258.82v17.038c0 .3-.086.573-.258.82a1.49 1.49 0 0 1-.694.542 1.49 1.49 0 0 1-.581.106c-.423 0-.79-.141-1.098-.423L8.46 13.959l-5.83 5.605c-.317.29-.682.436-1.097.436-.202 0-.396-.04-.581-.119a1.49 1.49 0 0 1-.694-.542A1.402 1.402 0 0 1 0 18.52V1.481c0-.3.086-.573.258-.82A1.49 1.49 0 0 1 .952.119C1.137.039 1.33 0 1.533 0h13.854Z' />
|
|
</svg>
|
|
)
|
|
}
|