Create Sidebar component

This commit is contained in:
Korbs 2024-06-10 01:26:09 -04:00
parent 7c4c7eb40b
commit 232d4a161a

View file

@ -0,0 +1,9 @@
---
import { SidebarItems } from '../../sidebar.json'
---
<div class="sidebar">
{SidebarItems.map((item) => (
item.heading ? <h2>{item.heading}</h2> : <a href={item.link}>{item.text}</a>
))}
</div>