Spaces:
Runtime error
Runtime error
File size: 552 Bytes
15bfa8d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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>
)
}
|