1
0
Fork 0
mirror of https://ark.sudovanilla.org/Korbs/butterflyvu.git synced 2024-12-22 23:33:54 +00:00

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>