+
+
+ {
+ setInputText(e.target.value);
+ }}
+ onKeyDown={(e) => {
+ if (e.key === "Enter") {
setSearchNow(uniqueId());
- }}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
- {(!loading || searchData.length !== 0) && (
- <>
- {totalRowsCount}{" "}
- {totalRowsCount !== 1 ? "results" : "result"}
- >
- )}
-
-
-
+
+
+
+ {
+ setTabActive("All");
+ }}
+ className={
+ (tabActive === "All"
+ ? "border-b-2 border-primary p-3"
+ : " border-b-2 border-transparent p-3 text-muted-foreground hover:text-primary") +
+ (loading ? " cursor-not-allowed " : "")
+ }
+ >
+ All
+
+ {
+ setTabActive("Flows");
+ }}
+ className={
+ (tabActive === "Flows"
+ ? "border-b-2 border-primary p-3"
+ : " border-b-2 border-transparent p-3 text-muted-foreground hover:text-primary") +
+ (loading ? " cursor-not-allowed " : "")
+ }
+ >
+ Flows
+
+ {
+ setTabActive("Components");
+ }}
+ className={
+ (tabActive === "Components"
+ ? "border-b-2 border-primary p-3"
+ : " border-b-2 border-transparent p-3 text-muted-foreground hover:text-primary") +
+ (loading ? " cursor-not-allowed " : "")
+ }
+ >
+ Components
+
+
+
+ Bundles
+
+
+
+
- {!loading || searchData.length !== 0 ? (
- searchData.map((item) => {
- return (
- <>
-
- >
- );
- })
- ) : (
+
+
+
+
+ {!loadingTags &&
+ tags.map((tag, idx) => (
+ {
+ updateTags(tag.name);
+ }}
+ >
+ category === tag.name
+ )
+ ? "bg-beta-foreground text-background hover:bg-beta-foreground"
+ : ""
+ )}
+ >
+ {tag.name}
+
+
+ ))}
+
+
+
+
+
+ {(!loading || searchData.length !== 0) && (
<>
-
-
-
+ {totalRowsCount} {totalRowsCount !== 1 ? "results" : "result"}
>
)}
-
+
- {!loading && searchData?.length === 0 && (
-
-
-
-
- You haven't{" "}
- {selectFilter === "createdbyme" ? "created" : "liked"}{" "}
- anything yet.
-
+
+
+
+
+ {!loading || searchData.length !== 0 ? (
+ searchData.map((item) => {
+ return (
+ <>
+
+ >
+ );
+ })
+ ) : (
+ <>
+
+
+
+ >
+ )}
+
+
+ {!loading && searchData?.length === 0 && (
+
+
+
+
+ You haven't{" "}
+ {selectFilter === "createdbyme" ? "created" : "liked"}{" "}
+ anything yet.
- )}
-
+
+ )}
{!loading && searchData.length > 0 && (
-