@liveblocks/react-ui
Version:
A set of React pre-built components for the Liveblocks products. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
26 lines (23 loc) • 548 B
JavaScript
import { memoize } from './memoize.js';
const dateTimeFormat = memoize(
(...args) => {
return new Intl.DateTimeFormat(...args);
}
);
const relativeTimeFormat = memoize(
(...args) => {
return new Intl.RelativeTimeFormat(...args);
}
);
const listFormat = memoize(
(...args) => {
return new Intl.ListFormat(...args);
}
);
const numberFormat = memoize(
(...args) => {
return new Intl.NumberFormat(...args);
}
);
export { dateTimeFormat, listFormat, numberFormat, relativeTimeFormat };
//# sourceMappingURL=intl.js.map