react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
18 lines (16 loc) • 464 B
TypeScript
import { compact } from "@intlayer/core";
//#region src/server/format/useCompact.d.ts
/**
* React client hook that provides a compact number formatter
* bound to the current application locale.
*
* @example
* ```tsx
* const formatCompact = useCompact();
* formatCompact(1500); // "1.5K"
* ```
*/
declare const useCompact: () => (...args: Parameters<typeof compact>) => string;
//#endregion
export { useCompact };
//# sourceMappingURL=useCompact.d.ts.map