-
- {!isLoading || data?.length > 0 ? (
- data?.map((item, idx) => (
- {
- removeFlow(item.id);
- }}
- key={idx}
- data={item}
- disabled={isLoading}
- button={
- !is_component ? (
-
- ) : (
- <>>
- )
- }
- />
- ))
- ) : !isLoading && data?.length === 0 ? (
- <>You haven't created {name}s yet.>
- ) : (
- <>
-
-
- >
- )}
-
+ {!isLoading && data.length === 0 ? (
+
You haven't created any {name}s yet.
+ ) : (
+
+ {!isLoading || data?.length > 0 ? (
+ data?.map((item, idx) => (
+ {
+ removeFlow(item.id);
+ }}
+ key={idx}
+ data={item}
+ disabled={isLoading}
+ button={
+ !is_component ? (
+
+ ) : (
+ <>>
+ )
+ }
+ />
+ ))
+ ) : (
+ <>
+
+
+ >
+ )}
+
+ )}