/** @jsxImportSource theme-ui */ import { Box, Card, Text } from '@theme-ui/components' import { useRouter } from 'next/router' 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 } const StigmataCard = ({ stigmata }: StigmataCardProps) => { const { locale } = useRouter() const stigmataName = translate( locale, { 'ko-KR': stigmata.krName }, stigmata.name ) return ( {stigmataName} {'⭐'.repeat(stigmata.rarity)} ) } export default StigmataCard