Monorepo containing core modules of Zeichen.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
299 B

  1. import { Plugin } from '../core/plugin'
  2. import Storage from './Storage'
  3. type PluginConfig = {}
  4. const LocalStoragePlugin: Plugin<PluginConfig> = config => ({
  5. currentUserId,
  6. }) => {
  7. new Storage(currentUserId, 'notes')
  8. new Storage(currentUserId, 'folders')
  9. }
  10. export default LocalStoragePlugin