Refactor link/emoji/newline components for composability

This commit is contained in:
Scott Nonnenberg 2018-05-18 14:48:20 -07:00
parent a5416e42c4
commit d9e5338dff
11 changed files with 295 additions and 95 deletions

8
ts/types/Util.ts Normal file
View file

@ -0,0 +1,8 @@
export type RenderTextCallback = (
options: {
text: string;
key: number;
}
) => JSX.Element;
export type Localizer = (key: string, values?: Array<string>) => string;