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