mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
[web] Add dark mode to misc editor modals GitOrigin-RevId: 3d7bd45476b0f814abfc26fa3da3eecca54342e8
31 lines
807 B
TypeScript
31 lines
807 B
TypeScript
import React from 'react'
|
|
import DictionaryModalContent from './dictionary-modal-content'
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
import { OLModal } from '@/shared/components/ol/ol-modal'
|
|
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
|
|
|
type DictionaryModalProps = {
|
|
show?: boolean
|
|
handleHide: () => void
|
|
}
|
|
|
|
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
|
|
const themed = useFeatureFlag('themed-modals')
|
|
|
|
return (
|
|
<OLModal
|
|
animation
|
|
show={show}
|
|
onHide={handleHide}
|
|
id="dictionary-modal"
|
|
data-testid="dictionary-modal"
|
|
size="sm"
|
|
themed={themed}
|
|
>
|
|
<DictionaryModalContent handleHide={handleHide} />
|
|
</OLModal>
|
|
)
|
|
}
|
|
|
|
export default withErrorBoundary(DictionaryModal)
|