'use client'; import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'; import { IconButton } from '@/components/ui/button'; import { Checkbox } from '@/components/ui/checkbox'; import Image from 'next/image'; import { useModels } from '@/hooks/services/chat'; import { useStreamChatStore } from '../stream-chat'; import { useTranslations } from 'next-intl'; export default function ChatModel() { const t = useTranslations('chat.drawer.chatModel'); const { data: models = [] } = useModels(); const chatSetting = useStreamChatStore((store) => store.chatSetting); const setChatSetting = useStreamChatStore((store) => store.setChatSetting); return (
{models.map((model: any) => (
setChatSetting({ chatModel: model })} className="bg-surface-element-normal cursor-pointer overflow-hidden rounded-lg p-4" >
{model}

{t('textMessagePrice')}: {t('textMessagePriceDesc')}

{t('voiceMessagePrice')}: {t('voiceMessagePriceDesc')}

{t('voiceCallPrice')}: {t('voiceCallPriceDesc')}

{t('rolePlayDesc')}
diamond 1/{t('textMessage')}
diamond 10/{t('sendOrPlayVoice')}
diamond 20/{t('voiceCallPerMin')}
))}
{t('stayTuned')}
); }