-
+
{!isEmpty(bots) &&
map(bots, (bot: Bot) => (
diff --git a/client/components/AddBotCard.tsx b/client/components/AddBotCard.tsx
index 8c1654a7..d3e5455d 100644
--- a/client/components/AddBotCard.tsx
+++ b/client/components/AddBotCard.tsx
@@ -1,13 +1,12 @@
'use client';
import React from 'react';
-import { Card, CardBody } from '@nextui-org/react';
+import { CardBody } from '@nextui-org/react';
import { AddBotIcon } from '@/public/icons/AddBotIcon';
-const BotCard = (props: { onPress: Function }) => {
+import BaseBotCard from './BaseBotCard';
+
+const AddBotCard = (props: { onPress: Function }) => {
return (
-
{
props.onPress();
}}
@@ -15,8 +14,8 @@ const BotCard = (props: { onPress: Function }) => {
-
+
);
};
-export default BotCard;
+export default AddBotCard;
diff --git a/client/components/BaseBotCard.tsx b/client/components/BaseBotCard.tsx
new file mode 100644
index 00000000..64f702e2
--- /dev/null
+++ b/client/components/BaseBotCard.tsx
@@ -0,0 +1,23 @@
+'use client';
+import React from 'react';
+import { Card, CardBody } from '@nextui-org/react';
+
+const BaseBotCard = (props: {
+ onPress: Function;
+ children: React.ReactNode;
+}) => {
+ return (
+
{
+ props.onPress();
+ }}
+ >
+ {props.children}
+
+ );
+};
+
+export default BaseBotCard;
diff --git a/client/components/BotCard.tsx b/client/components/BotCard.tsx
index 28d154d5..2e72dc60 100644
--- a/client/components/BotCard.tsx
+++ b/client/components/BotCard.tsx
@@ -44,7 +44,7 @@ const BotCard = (props: {