//
// Copyright 2024 DXOS.org
//
import React from 'react';
import { mx } from '@dxos/ui-theme';
import { Unit } from '@dxos/util';
const SLOW_TIME = 250;
export const Duration = ({ duration }) => (React.createElement("span", { className: mx(duration > SLOW_TIME && 'text-red-500') }, String(Unit.Duration(duration))));
//# sourceMappingURL=util.js.map