feat: reuse dropdown instead of radix select

This commit is contained in:
Arnošt Pleskot
2023-09-18 23:14:33 +02:00
parent c578e4b640
commit bb847e391c
7 changed files with 86 additions and 441 deletions
+7
View File
@@ -5,6 +5,7 @@ import {
DEFAULT_VERSION,
EVENT,
EXPORT_SCALES,
FANCY_BACKGROUND_IMAGES,
FONT_FAMILY,
isDarwin,
MIME_TYPES,
@@ -1081,3 +1082,9 @@ export const convertToExportPadding = (
throw new Error("Invalid padding value");
};
export function isBackgroundImageKey(
key: string,
): key is keyof typeof FANCY_BACKGROUND_IMAGES {
return key in FANCY_BACKGROUND_IMAGES;
}