first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 22:18:17 +03:00
commit 7b2b27a42c
1660 changed files with 123050 additions and 0 deletions

17
app/stores/productTree.ts Normal file
View File

@@ -0,0 +1,17 @@
import { defineStore } from 'pinia';
import type { ProductTree } from '~~/types/banner';
interface ProductTreeState {
productTree: ProductTree[];
}
export const useProductTreeStore = defineStore('productTree', {
state: (): ProductTreeState => ({
productTree: [],
}),
actions: {
setProductTree(newProductTree: ProductTree[]): void {
this.productTree = newProductTree;
}
}
});