"use client"; import { getNameChar } from '@/helper'; import useLocaleStore from '@/stores/localeStore'; import { AvatarHakushiType } from '@/types'; import NameAvatar from '../nameAvatar'; import useBattleDataStore from '@/stores/battleDataStore'; import Image from 'next/image'; interface CharacterCardProps { data: AvatarHakushiType } export default function CharacterCard({ data }: CharacterCardProps) { const { locale } = useLocaleStore(); const text = getNameChar(locale, data) const { avatarDetail } = useBattleDataStore() return (