adding prop types

This commit is contained in:
2024-02-18 19:23:55 -05:00
parent 65ff8998a0
commit 06fce5508a
3 changed files with 20 additions and 2 deletions
+6 -1
View File
@@ -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/' },
];