Files
go_nuxt_admin/app/stores/setting.ts
Beyhan Oğur 5285a0dd86 first commit
2026-04-26 22:07:47 +03:00

18 lines
400 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;
}
}
});