import MocBar from "./moc"; import useUserDataStore from "@/stores/userDataStore"; import PfBar from "./pf"; import Image from "next/image"; import AsBar from "./as"; import { useTranslations } from "next-intl"; import CeBar from "./ce"; import PeakBar from "./peak"; import { useShallow } from "zustand/react/shallow"; export default function MonsterBar() { const { battle_type, setBattleType } = useUserDataStore( useShallow((state) => ({ battle_type: state.battle_type, setBattleType: state.setBattleType, })) ) const transI18n = useTranslations("DataPage") const navItems = [ { name: transI18n("memoryOfChaos"), icon: 'AbyssIcon01', value: 'MOC' }, { name: transI18n("pureFiction"), icon: 'ChallengeStory', value: 'PF' }, { name: transI18n("apocalypticShadow"), icon: 'ChallengeBoss', value: 'AS' }, { name: transI18n("anomalyArbitration"), icon: 'ChallengePeakIcon', value: 'PEAK' }, { name: transI18n("customEnemy"), icon: 'MonsterIcon', value: 'CE' }, { name: transI18n("simulatedUniverse"), icon: 'SimulatedUniverse', value: 'SU' }, ]; return (
{/* Header Navigation */} {(battle_type.toUpperCase() === "DEFAULT" || battle_type.toUpperCase() === "") && (
{transI18n("noEventSelected")}
)} {battle_type.toUpperCase() === 'MOC' && } {battle_type.toUpperCase() === 'PF' && } {battle_type.toUpperCase() === 'AS' && } {battle_type.toUpperCase() === 'CE' && } {battle_type.toUpperCase() === 'PEAK' && } {battle_type.toUpperCase() === 'SU' && (
{transI18n("comingSoon")}
)}
) }