'use client'; import { useState } from 'react'; import { Checkbox } from '@/components/ui/checkbox'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { useStreamChatStore } from '@/app/(main)/chat/[id]/stream-chat'; type TokenOption = { value: number; label: string; }; export default function MaxToken() { const chatSetting = useStreamChatStore((store) => store.chatSetting); const setChatSetting = useStreamChatStore((store) => store.setChatSetting); const tokenOptions: TokenOption[] = [ { value: 800, label: '800' }, { value: 1000, label: '1000' }, { value: 1200, label: '1200' }, { value: 1500, label: '1500' }, ]; return (