|
|
|
@ -1,5 +1,4 @@ |
|
|
|
|
import Link from "next/link"; |
|
|
|
|
import { useRouter } from "next/router"; |
|
|
|
|
import React, { ReactNode } from "react"; |
|
|
|
|
|
|
|
|
|
import { Image } from "@/components/Image"; |
|
|
|
@ -17,8 +16,6 @@ export default function CoopAdvice() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function Advice(props: { children: ReactNode }) { |
|
|
|
|
const router = useRouter(); |
|
|
|
|
const path = router.pathname; |
|
|
|
|
return ( |
|
|
|
|
<> |
|
|
|
|
<div className={styles.titleContainer}> |
|
|
|
@ -27,13 +24,7 @@ export function Advice(props: { children: ReactNode }) { |
|
|
|
|
</div> |
|
|
|
|
<div className={styles.adviceBarContainer}> |
|
|
|
|
<Link href="/resources/advice/coop"> |
|
|
|
|
<a |
|
|
|
|
className={ |
|
|
|
|
path == "/resources/advice/coop" ? styles.currentAdvice : "" |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
Coop Advice |
|
|
|
|
</a> |
|
|
|
|
<a className={styles.currentAdvice}>Coop Advice</a> |
|
|
|
|
</Link> |
|
|
|
|
<Link href="/resources/advice/academic"> |
|
|
|
|
<a>Academic Advice</a> |
|
|
|
|