Add a test file

This commit is contained in:
Jaiwanth 2021-08-03 14:36:21 +05:30
parent 46e2f67f54
commit 4824c93707
5 changed files with 112 additions and 25 deletions

View file

@ -37,6 +37,8 @@ export const textForFormat = (format: string): string => {
return _t("JSON");
case ExportFormats.PLAIN_TEXT:
return _t("Plain Text");
default:
throw new Error("Unknown format");
}
};
@ -48,13 +50,15 @@ export const textForType = (type: string): string => {
return _t("Specify a number of messages");
case ExportTypes.TIMELINE:
return _t("Current Timeline");
default:
throw new Error("Unknown type: " + type);
// case exportTypes.START_DATE:
// return _t("From a specific date");
}
};
export interface IExportOptions {
startDate?: number;
// startDate?: number;
numberOfMessages?: number;
attachmentsIncluded: boolean;
maxSize: number;