# extendify/0.10.0/src/Library/components/modals/settings/SettingsModal.js

Extendify, version 0.10.0. 27 lines.

- Page: https://pluginprobe.com/plugins/extendify/0.10.0/code/src/Library/components/modals/settings/SettingsModal.js
- Raw: https://pluginprobe.com/plugins/extendify/0.10.0/raw/src/Library/components/modals/settings/SettingsModal.js
- Modified: 2022-05-27T00:51:26+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.10.0/code/src/Library/components/modals/settings/SettingsModal.js#L10-L20`.

```javascript
import { useRef } from '@wordpress/element'
import { __ } from '@wordpress/i18n'
import { useGlobalStore } from '@library/state/GlobalState'
import { Modal } from '../Modal'
import { DevSettings } from './DevSettings'
import LoginInterface from './LoginInterface'

export const SettingsModal = () => {
    const initialFocus = useRef(null)
    const actionCallback = useGlobalStore((state) => state.removeAllModals)

    return (
        <Modal
            heading={__('Settings', 'extendify')}
            isOpen={true}
            ref={initialFocus}>
            <div className="flex justify-center flex-col divide-y">
                <DevSettings />
                <LoginInterface
                    initialFocus={initialFocus}
                    actionCallback={actionCallback}
                />
            </div>
        </Modal>
    )
}

```
