import {getDuration, getExactDuration} from 'sentry/utils/formatters'; interface Props extends React.HTMLAttributes { seconds: number; abbreviation?: boolean; exact?: boolean; fixedDigits?: number; } const Duration = ({seconds, fixedDigits, abbreviation, exact, ...props}: Props) => ( {exact ? getExactDuration(seconds, abbreviation) : getDuration(seconds, fixedDigits, abbreviation)} ); export default Duration;