import { useState } from 'react' import { OLModal, OLModalHeader, OLModalBody, OLModalFooter, OLModalTitle, } from '@/shared/components/ol/ol-modal' import { Select } from '@/shared/components/select' type TestItem = { key: string label: string } function Modal({ backdrop }: { backdrop?: boolean | 'static' } = {}) { const [isModalOpen, setIsModalOpen] = useState(false) const testItems: TestItem[] = [ { key: 'item1', label: 'First Item' }, { key: 'item2', label: 'Second Item' }, { key: 'item3', label: 'Third Item' }, ] return (
setIsModalOpen(false)} backdrop={backdrop} > This is a focus trap modal

This is for testing the modal behaviour