import {defineStore} from "pinia"; import type {Article} from "~/types/article"; import {NotificationMessage} from "~/types/notificationMessage"; import type {RuntimeConfig} from "nuxt/schema"; import {Origin} from "~/types/origin"; import type {Variant} from "~/types/variant"; import {Unit} from "~/types/unit"; import type {Label} from "~/types/label"; import type {Settings} from "~/types/settings"; import type {Supplier} from "~/types/supplier"; interface State { config: RuntimeConfig, // UI descriptionMaxChars: number, ingredientsMaxChars: number, // Notification notifications: NotificationMessage[], notificationQueue: NotificationMessage[], // Article article: Article | null, articleEdit: Article | null, labels: Array