import { PersistedStateOptions } from 'pinia-plugin-persistedstate'

const piniaPersistOption = (key: string, paths?: any[]) => {
    const persist: PersistedStateOptions = {
        key,
        storage: localStorage,
        paths
    }
    return persist
}

export default piniaPersistOption