mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-18 15:00:39 +02:00
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
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()}`
|
|
);
|
|
};
|