bingo-silver / src /components /turn-counter.tsx
SilverStarShadow's picture
Duplicate from hf4all/bingo
15bfa8d
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>
)
}