# extendify/0.2.0/src/state/Importing.js

Extendify, version 0.2.0. 23 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.2.0/code/src/state/Importing.js
- Raw: https://pluginprobe.com/plugins/extendify/0.2.0/raw/src/state/Importing.js
- Modified: 2022-01-06T18:08:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/0.2.0/code/src/state/Importing.js#L10-L20`.

```javascript
import create from 'zustand'
import { persist } from 'zustand/middleware'

export const useWantedTemplateStore = create(
    persist(
        (set) => ({
            wantedTemplate: {},
            importOnLoad: false,
            setWanted: (template) =>
                set({
                    wantedTemplate: template,
                }),
            removeWanted: () =>
                set({
                    wantedTemplate: {},
                }),
        }),
        {
            name: 'extendify-wanted-template',
        },
    ),
)

```
