import { PersistedStateOptions } from "pinia-plugin-persistedstate";

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

export default piniaPersistOption;
