# hostinger/trunk/vue-frontend/src/stores/generalStoreData.ts

Hostinger Tools, version trunk. 23 lines.

- Page: https://pluginprobe.com/plugins/hostinger/trunk/code/vue-frontend/src/stores/generalStoreData.ts
- Raw: https://pluginprobe.com/plugins/hostinger/trunk/raw/vue-frontend/src/stores/generalStoreData.ts
- Modified: 2025-09-09T07:18:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/trunk/code/vue-frontend/src/stores/generalStoreData.ts#L10-L20`.

```typescript
import { defineStore } from "pinia";
import { ref } from "vue";

import { HostingerToolsData, STORE_PERSISTENT_KEYS } from "@/types";
import { snakeToCamelObj } from "@/utils/services";

export const useGeneralStoreData = defineStore(
	"generalStoreData",
	() => {
		const toolsData = ref<HostingerToolsData>(
			// @ts-expect-error - hostinger_tools_data is a global variable
			snakeToCamelObj(hostinger_tools_data)
		);

		return {
			...toolsData.value
		};
	},
	{
		persist: { key: STORE_PERSISTENT_KEYS.TOOLS_GENERAL_DATA_STORE }
	}
);

```
