CoolFace
Apppublic

code2024/bingo

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
turn-counter.tsx24 linesDownload Raw Back to components
1import React from 'react'2import { Throttling } from '@/lib/bots/bing/types'3 4export interface TurnCounterProps {5  throttling?: Throttling6}7 8export function TurnCounter({ throttling }: TurnCounterProps) {9  if (!throttling) {10    return null11  }12 13  return (14    <div className="turn-counter">15      <div className="text">16        <span>{throttling.numUserMessagesInConversation}</span>17        <span> 共 </span>18        <span>{throttling.maxNumUserMessagesInConversation}</span>19      </div>20      <div className="indicator"></div>21    </div>22  )23}24