25
src/links.ts
25
src/links.ts
@ -1,22 +1,31 @@
|
||||
import * as m from "./paraglide/messages.js"
|
||||
import * as m from "@/paraglide/messages.js"
|
||||
import type { NavLink } from "@/utils/linking.ts"
|
||||
|
||||
interface Link {
|
||||
label: string
|
||||
to: `/${string}`
|
||||
label: () => string
|
||||
to: NavLink
|
||||
}
|
||||
|
||||
const Links: Link[] = [
|
||||
{
|
||||
label: m.home(),
|
||||
label: m.home,
|
||||
to: "/"
|
||||
},
|
||||
{
|
||||
label: m.myProjects(),
|
||||
to: "/project"
|
||||
label: m.myProjects,
|
||||
to: "/projects"
|
||||
},
|
||||
{
|
||||
label: m.contactMe(),
|
||||
to: "/contact-me"
|
||||
label: m.myLinks,
|
||||
to: "/links"
|
||||
},
|
||||
{
|
||||
label: m.hardware,
|
||||
to: "/hardware"
|
||||
},
|
||||
{
|
||||
label: m.contactMe,
|
||||
to: "/contact"
|
||||
}
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user