feat: add version prop to PluginToggle component and pass it from BuildNew page

This commit is contained in:
Ben Allfree
2025-11-29 21:29:59 -08:00
parent f117d2c514
commit 3a80d3bd7c
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -10,6 +10,7 @@ interface PluginToggleProps {
featured?: boolean
flashCount?: number
homepage?: string
version?: string
}
export function PluginToggle({
@@ -20,11 +21,13 @@ export function PluginToggle({
featured = false,
flashCount = 0,
homepage,
version,
}: PluginToggleProps) {
return (
<div className="relative flex items-start gap-4 p-4 rounded-lg border-2 border-slate-700 bg-slate-900/50 hover:border-slate-600 transition-colors">
{/* Flash count and homepage links in lower right */}
<div className="absolute bottom-2 right-2 flex items-center gap-3 text-xs text-slate-400 z-10">
{version && <span className="text-slate-500">v{version}</span>}
<div className="flex items-center gap-1">
<svg
xmlns="http://www.w3.org/2000/svg"