import React, { useState, useEffect, useContext, useRef, memo } from 'react'; import {Link} from 'react-router-dom'; import { getUrl2, isDev, ThemeContext } from 'educoder' import { Modal } from 'antd' function HeadlessModal (props) { // const [ visible, setVisible ] = useState(false) const theme = useContext(ThemeContext); const { category, visible, setVisible, className, width } = props; useEffect(() => { }, []) return ( setVisible(false) }> {props.children} ) } export default HeadlessModal