diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-02-10 16:28:21 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-02-10 16:28:21 +0100 |
| commit | fca99d6126c31fbb18ed9f1034cee6f940b040e8 (patch) | |
| tree | 11500ff0fcc4a933650e3e91f1ea00fd315c4d0c /apps/web/src/stores | |
| parent | 33a8705f0d967891402c61dd3192e6bad24921ef (diff) | |
| download | opencut-fca99d6126c31fbb18ed9f1034cee6f940b040e8.tar.gz | |
refactor
Diffstat (limited to 'apps/web/src/stores')
| -rw-r--r-- | apps/web/src/stores/text-properties-store.ts | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/apps/web/src/stores/text-properties-store.ts b/apps/web/src/stores/text-properties-store.ts deleted file mode 100644 index c7476b46..00000000 --- a/apps/web/src/stores/text-properties-store.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { create } from "zustand";
-import { persist } from "zustand/middleware";
-
-export type TextPropertiesTab = "text" | "transform";
-
-export interface TextPropertiesTabMeta {
- value: TextPropertiesTab;
- label: string;
-}
-
-export const TEXT_PROPERTIES_TABS: ReadonlyArray<TextPropertiesTabMeta> = [
- { value: "text", label: "Text" },
- { value: "transform", label: "Transform" },
-] as const;
-
-export function isTextPropertiesTab(value: string): value is TextPropertiesTab {
- return TEXT_PROPERTIES_TABS.some((t) => t.value === value);
-}
-
-interface TextPropertiesState {
- activeTab: TextPropertiesTab;
- setActiveTab: (tab: TextPropertiesTab) => void;
-}
-
-export const useTextPropertiesStore = create<TextPropertiesState>()(
- persist(
- (set) => ({
- activeTab: "text",
- setActiveTab: (tab) => set({ activeTab: tab }),
- }),
- { name: "text-properties" },
- ),
-);
|
