Refactor link/emoji/newline components for composability
This commit is contained in:
parent
a5416e42c4
commit
d9e5338dff
11 changed files with 295 additions and 95 deletions
8
ts/types/Util.ts
Normal file
8
ts/types/Util.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export type RenderTextCallback = (
|
||||
options: {
|
||||
text: string;
|
||||
key: number;
|
||||
}
|
||||
) => JSX.Element;
|
||||
|
||||
export type Localizer = (key: string, values?: Array<string>) => string;
|
Loading…
Add table
Add a link
Reference in a new issue