import { notification , useRemaining } from "dialogic-react" ; import React from "react" ; export const RemainingLabel = ( ) => { const [ remainingSeconds ] = useRemaining ( { instance : notification , roundToSeconds : false , } ) ; return ( < span style = { { minWidth : "3em" , textAlign : "left" , } } > { remainingSeconds === undefined ? "0" : remainingSeconds . toString ( ) } < /span>); } ;