Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | 7x 41x 3x 38x | import type momentLib from 'moment';
import type { ContentRenderer } from './types';
/**
* Renders interval-to output.
*/
export const renderTo: ContentRenderer = ({ props, datetime }) => {
if (props.to) {
return datetime.to(props.to as momentLib.MomentInput, props.ago);
}
return undefined;
};
|