feat: wordlists user interface
This commit is contained in:
24
src/gui.tsx
Normal file
24
src/gui.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import { StrictMode } from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import Settings from '@/Settings'
|
||||
import '@/gui.css'
|
||||
|
||||
const renderSettingsGui = () => {
|
||||
const rootContainer = document.getElementById('extensions_settings')
|
||||
|
||||
if (rootContainer === null) {
|
||||
throw new Error('[st-randomness-helpers] root container not found')
|
||||
}
|
||||
|
||||
const rootElement = document.createElement('div')
|
||||
|
||||
rootContainer.appendChild(rootElement)
|
||||
|
||||
ReactDOM.createRoot(rootElement).render(
|
||||
<StrictMode>
|
||||
<Settings />
|
||||
</StrictMode>
|
||||
)
|
||||
}
|
||||
|
||||
export default renderSettingsGui
|
||||
Reference in New Issue
Block a user