Files
nuxtfiber/app/stores/setting.ts
Beyhan Oğur 7b2b27a42c first commit
2026-04-26 22:18:17 +03:00

17 lines
399 B
TypeScript

import { defineStore } from 'pinia';
import type { Setting } from '~~/types/setting';
interface SettingState {
settings: Setting | null;
}
export const useSettingStore = defineStore('setting', {
state: (): SettingState => ({
settings: null,
}),
actions: {
setSettings(newSettings: Setting | null): void {
this.settings = newSettings;
}
}
});