decentraland-ui
Version:
Decentraland's UI components and styles
13 lines (12 loc) • 866 B
TypeScript
import { Rarity, NotificationType } from '@dcl/schemas';
import { CommonNotificationProps, DCLNotification } from './types';
import { FunctionComponent } from 'react';
export declare const MAXIMUM_FRACTION_DIGITS = 2;
export declare function formatMana(mana: string, maximumFractionDigits?: number): string;
export declare function getBGColorByRarity(rarity: Rarity): string;
export declare type DecentralandNotificationComponentByType<T> = Partial<{
[k in NotificationType]: T extends DCLNotification ? FunctionComponent<CommonNotificationProps<any>> : never;
}>;
export declare const NotificationComponentByType: DecentralandNotificationComponentByType<DCLNotification>;
export declare const CURRENT_AVAILABLE_NOTIFICATIONS: string[];
export declare const replaceWithValues: (str: string, values: Record<string, string | JSX.Element>) => JSX.Element | string;