bingo-JandJ-test / src /components /turn-counter.tsx
hammerjohn's picture
Duplicate from hf4all/bingo
638aac3
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>
)
}