This commit is contained in:
Aakansha Doshi 2024-02-05 19:28:24 +05:30
parent 1db2869906
commit f3b6e9b09f

View File

@ -0,0 +1,11 @@
import { EDITOR_LS_KEYS } from "../constants";
import { t } from "../i18n";
import { getDateTime } from "../utils";
import { EditorLocalStorage } from "./EditorLocalStorage";
export const getFileName = () => {
return (
EditorLocalStorage.get<string>(EDITOR_LS_KEYS.EXCALIDRAW_FILE_NAME) ||
`${t("labels.untitled")}-${getDateTime()}`
);
};