summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/stickers
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-14 18:17:14 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-14 18:17:14 +0200
commit6de6c7fd95de1de9d8d3107eaf7ce1dd150ed094 (patch)
tree75d5eb387b867449fc2218f5fe9b3acc70731561 /apps/web/src/lib/stickers
parent34c67ef8e85eafd6dfe6808280c807aceb00a345 (diff)
downloadopencut-6de6c7fd95de1de9d8d3107eaf7ce1dd150ed094.tar.gz
refactor: move constants to domain modules
Diffstat (limited to 'apps/web/src/lib/stickers')
-rw-r--r--apps/web/src/lib/stickers/categories.ts7
-rw-r--r--apps/web/src/lib/stickers/index.ts4
-rw-r--r--apps/web/src/lib/stickers/intrinsic-size.ts1
-rw-r--r--apps/web/src/lib/stickers/types.ts2
4 files changed, 11 insertions, 3 deletions
diff --git a/apps/web/src/lib/stickers/categories.ts b/apps/web/src/lib/stickers/categories.ts
new file mode 100644
index 00000000..e8a8b71b
--- /dev/null
+++ b/apps/web/src/lib/stickers/categories.ts
@@ -0,0 +1,7 @@
+export const STICKER_CATEGORIES = {
+ all: "All",
+ // v0.4.0
+ // logos: "Logos",
+ flags: "Flags",
+ shapes: "Shapes",
+};
diff --git a/apps/web/src/lib/stickers/index.ts b/apps/web/src/lib/stickers/index.ts
index d39fe0f5..d3e14ed1 100644
--- a/apps/web/src/lib/stickers/index.ts
+++ b/apps/web/src/lib/stickers/index.ts
@@ -1,7 +1,7 @@
import {
STICKER_CATEGORIES,
- STICKER_INTRINSIC_SIZE_FALLBACK,
-} from "@/constants/sticker-constants";
+} from "@/lib/stickers/categories";
+import { STICKER_INTRINSIC_SIZE_FALLBACK } from "@/lib/stickers/intrinsic-size";
import type { StickerCategory } from "@/lib/stickers/types";
import { stickersRegistry } from "./registry";
import { resolveStickerId } from "./resolver";
diff --git a/apps/web/src/lib/stickers/intrinsic-size.ts b/apps/web/src/lib/stickers/intrinsic-size.ts
new file mode 100644
index 00000000..43436237
--- /dev/null
+++ b/apps/web/src/lib/stickers/intrinsic-size.ts
@@ -0,0 +1 @@
+export const STICKER_INTRINSIC_SIZE_FALLBACK = 200;
diff --git a/apps/web/src/lib/stickers/types.ts b/apps/web/src/lib/stickers/types.ts
index 9d16e4be..bc7dd490 100644
--- a/apps/web/src/lib/stickers/types.ts
+++ b/apps/web/src/lib/stickers/types.ts
@@ -1,4 +1,4 @@
-import type { STICKER_CATEGORIES } from "@/constants/sticker-constants";
+import type { STICKER_CATEGORIES } from "@/lib/stickers/categories";
export type StickerCategory = keyof typeof STICKER_CATEGORIES;