'use client' import React, { useState } from 'react' import { useContext } from 'use-context-selector' import type { StrategyDetail, } from '@/app/components/plugins/types' import I18n from '@/context/i18n' import { getLanguage } from '@/i18n/language' import cn from '@/utils/classnames' type Props = { detail: StrategyDetail } const StrategyItem = ({ detail, }: Props) => { const { locale } = useContext(I18n) const language = getLanguage(locale) const [showDetail, setShowDetail] = useState(false) return ( <>