import { DataPersisterArgs, HookPersister } from '~/types/interfaces'
import BaseHook from '~/services/data/hooks/baseHook'

class HookPersisterExample extends BaseHook implements HookPersister {
  public static  priority = 10

  async invoke (_args: DataPersisterArgs): Promise<any> {
    // eslint-disable-next-line no-console
    await console.log('This is a persister hook')
  }

  static support (_args: DataPersisterArgs): boolean {
    return false
  }
}

export default HookPersisterExample
