From 7595aeda038e681a7d255bc675a8d6046a6abe8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Fri, 8 Jan 2021 23:02:10 +0900 Subject: [PATCH] feat: added Bot Card --- components/BotCard.tsx | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 components/BotCard.tsx diff --git a/components/BotCard.tsx b/components/BotCard.tsx new file mode 100644 index 0000000..92e01fe --- /dev/null +++ b/components/BotCard.tsx @@ -0,0 +1,46 @@ +import { Bot } from '../types' +import { formatNumber } from '../utils/Tools' +import { Status } from '../utils/Constants' +import Divider from './Divider' +import Tag from './Tag' + +const BotCard = ({ bot }:BotProps):JSX.Element => { + return
+
+
+
+ +
+
+
+ +
+ +
+

{Status[bot.status]?.text}

+

{bot.name} {bot.trusted && }

+

{bot.intro}

+ {/* */} +
+
+
+ {formatNumber(bot.votes)}} dark/> + {formatNumber(bot.servers)} 서버} dark/> +
+
+
+
+
+
+} + +interface BotProps { + bot: Bot +} + +export default BotCard