{playground && data?.metadata !== undefined ? (
- ) : (
-
- )}
+ ) : undefined}
{data.liked_by_count != undefined && (
{onDelete && data?.metadata !== undefined ? (
@@ -351,10 +353,11 @@ export default function CollectionCardComponent({
}
>
@@ -389,7 +392,7 @@ export default function CollectionCardComponent({
liked_by_user
? "fill-destructive stroke-destructive"
: "",
- !authorized ? " text-ring" : ""
+ !authorized ? " text-ring" : "",
)}
/>
@@ -427,22 +430,21 @@ export default function CollectionCardComponent({
}
className={cn(
loading ? "h-5 w-5 animate-spin" : "h-5 w-5",
- !authorized ? " text-ring" : ""
+ !authorized ? " text-ring" : "",
)}
/>
)}
- {button && button}
{playground && data?.metadata === undefined && (
),
- [hasApiKey, validApiKey, currentFlow, hasStore]
+ [hasApiKey, validApiKey, currentFlow, hasStore],
);
return (
@@ -103,12 +103,10 @@ export default function FlowToolbar(): JSX.Element {
className={`relative inline-flex w-full cursor-not-allowed items-center justify-center gap-1 px-5 py-3 text-sm font-semibold text-muted-foreground transition-all duration-150 ease-in-out ease-in-out`}
>
- Run
+ Playground