/** @jsxImportSource theme-ui */ import { Box, Card, Text, Flex } from '@theme-ui/components' import { useRouter } from 'next/router' import { assetsBucketBaseUrl } from '../../lib/consts' import { StigmataData } from '../../lib/honkai3rd/stigmata' import { translate } from '../../lib/i18n' import PageLink from '../atoms/PageLink' import SquareImageBox from '../atoms/SquareImageBox' interface StigmataCardProps { stigmata: Pick size?: 'sm' | 'default' } const StigmataCard = ({ stigmata, size }: StigmataCardProps) => { const { locale } = useRouter() const stigmataName = translate( locale, { 'ko-KR': stigmata.krName }, stigmata.name ) if (size === 'sm') { return ( {stigmataName} ) } return ( {stigmataName} {'⭐'.repeat(stigmata.rarity)} ) } export default StigmataCard