Add external property to feature card interface

cgen-c79aa72f12ef4065ad6d0db1a9549469
This commit is contained in:
Builder.io 2025-11-17 04:56:35 +00:00
parent 6c178cc163
commit 1cc6c3c56e

View file

@ -49,6 +49,7 @@ export default function Index() {
type FeatureCard = {
title: string;
description: string;
external?: boolean;
icon: any;
color: string;
link?: string;
@ -344,13 +345,25 @@ export default function Index() {
/>
{feature.link ? (
<div className="pt-1">
<Link
to={feature.link}
className="text-xs inline-flex items-center gap-1 text-aethex-300 hover:text-aethex-200"
>
Explore
<ArrowRight className="h-3 w-3" />
</Link>
{feature.external ? (
<a
href={feature.link}
target="_blank"
rel="noopener noreferrer"
className="text-xs inline-flex items-center gap-1 text-aethex-300 hover:text-aethex-200"
>
Explore
<ArrowRight className="h-3 w-3" />
</a>
) : (
<Link
to={feature.link}
className="text-xs inline-flex items-center gap-1 text-aethex-300 hover:text-aethex-200"
>
Explore
<ArrowRight className="h-3 w-3" />
</Link>
)}
</div>
) : null}
</CardContent>