Can close Dimmer from the parent component.
import { DashboardDimmer } from 'dc-pattern-lib';
const T = () => {
const [isOpen, updateState] = useState(true)
setTimeout(() => {
updateState(!isOpen)
}, 1000);
return <DashboardDimmer isOpen={isOpen} />
}