/**
 * Service Auto Module - Shared Store Instances
 *
 * Instantiates the shared stores (auth, companies) with the
 * Service Auto module's API service.
 */

import { createAuthStore } from '@shared/stores/auth'
import { createCompaniesStore } from '@shared/stores/companies'
import api from '../services/api.js'

const resetAllStores = () => {}

export const useAuthStore = createAuthStore(api, { onLogout: resetAllStores })
export const useCompanyStore = createCompaniesStore(api, useAuthStore)
