bingo / src /components /turn-counter.tsx
ojumpin's picture
Duplicate from hf4all/bingo
59d634d
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>
)
}