| 1 |
import { useRef } from '@wordpress/element' |
| 2 |
import { __ } from '@wordpress/i18n' |
| 3 |
import { useGlobalStore } from '@library/state/GlobalState' |
| 4 |
import { Modal } from '../Modal' |
| 5 |
import { DevSettings } from './DevSettings' |
| 6 |
import LoginInterface from './LoginInterface' |
| 7 |
|
| 8 |
export const SettingsModal = () => { |
| 9 |
const initialFocus = useRef(null) |
| 10 |
const actionCallback = useGlobalStore((state) => state.removeAllModals) |
| 11 |
|
| 12 |
return ( |
| 13 |
<Modal |
| 14 |
heading={__('Settings', 'extendify')} |
| 15 |
isOpen={true} |
| 16 |
ref={initialFocus}> |
| 17 |
<div className="flex justify-center flex-col divide-y"> |
| 18 |
<DevSettings /> |
| 19 |
<LoginInterface |
| 20 |
initialFocus={initialFocus} |
| 21 |
actionCallback={actionCallback} |
| 22 |
/> |
| 23 |
</div> |
| 24 |
</Modal> |
| 25 |
) |
| 26 |
} |
| 27 |
|