re-add qtquick types and qs examples links to nav

This commit is contained in:
outfoxxed 2024-10-24 20:17:34 -07:00
parent a5c4272469
commit bc01642fa4
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 36 additions and 22 deletions

View file

@ -1,10 +1,22 @@
---
import { Icon } from "astro-icon/components";
interface Props {
title: string;
link: string;
current?: boolean;
showIcon?: boolean;
}
const { title, link, current } = Astro.props;
const { title, link, current, showIcon } = Astro.props;
---
<a class=`nav-component nav-item nav-link ${current ? "nav-current" : ""}` href={link}>{title}</a>
<a class=`nav-component nav-item nav-link ${current ? "nav-current" : ""}` href={link}>
{ showIcon ? (
<div>
<Icon name="link"/>
{title}
</div>
) : (
title
)}
</a>