From a9072370ca1eb9a5cce928b1d487db0f307edea6 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Tue, 20 Sep 2022 15:24:27 +0800
Subject: feat: Move old apps into it's own directory

---
 old-apps/projects/src/app/pages/nav/nav-item.svelte | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 old-apps/projects/src/app/pages/nav/nav-item.svelte

(limited to 'old-apps/projects/src/app/pages/nav/nav-item.svelte')

diff --git a/old-apps/projects/src/app/pages/nav/nav-item.svelte b/old-apps/projects/src/app/pages/nav/nav-item.svelte
new file mode 100644
index 0000000..335cbbb
--- /dev/null
+++ b/old-apps/projects/src/app/pages/nav/nav-item.svelte
@@ -0,0 +1,18 @@
+<script lang="ts">
+    import {link} from "svelte-spa-router";
+    import Icon from "$shared/components/icon.svelte";
+    
+    export let external = "";
+    export let to = "";
+    export let text;
+    export let icon;
+</script>
+
+<li class="sidenav-v4__item">
+    <a class="sidenav-v4__link" href={to ?? external} use:link={external === ""}>
+        {#if icon}
+            <Icon class="sidenav-v4__icon icon" name="{icon}" />
+        {/if}
+        <span>{text}</span>
+    </a>
+</li>
-- 
cgit v1.3

