adding prop types
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
---
|
||||
const { pathname } = Astro.url;
|
||||
|
||||
const navLinks = [
|
||||
type NavLink = {
|
||||
label: string;
|
||||
path: string;
|
||||
};
|
||||
|
||||
const navLinks: NavLink[] = [
|
||||
{ label: '📝 Blog', path: '/' },
|
||||
{ label: '👤 About', path: '/about/' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user