Skip to content

Commit 011a221

Browse files
authored
Fix AI Studio overview rendering zero feature cards (snippets cannot use import) (#2895)
1 parent 67920ff commit 011a221

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

snippets/AIStudioCards.mdx

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { FeatureCards } from '/snippets/FeatureCards.mdx';
2-
31
export const components = [
42
{
53
title: "Centralized AI Management",
@@ -23,4 +21,23 @@ export const components = [
2321
}
2422
];
2523

24+
export const FeatureCards = ({ components }) => {
25+
return (
26+
<div className="feature-grid">
27+
{components.map((item, index) => (
28+
<div key={index} className="feature-item">
29+
<div className="feature-icon">{item.icon}</div>
30+
<div className="feature-title">{item.title}</div>
31+
<p className="feature-description">{item.description}</p>
32+
{item.path && (
33+
<div className="feature-button">
34+
<a href={item.path}>{item.button_text || 'Learn More'}</a>
35+
</div>
36+
)}
37+
</div>
38+
))}
39+
</div>
40+
);
41+
};
42+
2643
<FeatureCards components={components} />

0 commit comments

Comments
 (0)