mirror of https://github.com/glitch-soc/mastodon
15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import type { MessageDescriptor } from 'react-intl';
|
|
|
|
export type TranslatableString = string | MessageDescriptor;
|
|
|
|
export type TranslatableValues = Record<string, string | number | Date>;
|
|
|
|
export interface Alert {
|
|
key: number;
|
|
title?: TranslatableString;
|
|
message: TranslatableString;
|
|
action?: TranslatableString;
|
|
values?: TranslatableValues;
|
|
onClick?: () => void;
|
|
}
|