bingo / src /components /turn-counter.tsx
zhouyi1989's picture
Duplicate from hf4all/bingo
6337686
raw
history blame contribute delete
552 Bytes
import React from 'react'
import { Throttling } from '@/lib/bots/bing/types'
export interface TurnCounterProps {
throttling?: Throttling
}
export function TurnCounter({ throttling }: TurnCounterProps) {
if (!throttling) {
return null
}
return (
<div className="turn-counter">
<div className="text">
<span>{throttling.numUserMessagesInConversation}</span>
<span></span>
<span>{throttling.maxNumUserMessagesInConversation}</span>
</div>
<div className="indicator"></div>
</div>
)
}