```
**This below code doesnt not work,**
```
{status === "checked-out" && (
)}
```
**I get this error**
> Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports
However it had been working before I added the **ErrorBoundary library**
Using cloneElement in the modal Open component causes a bug unexpectedly
return cloneElement(children, { onClick: () => open(opens) });
This code works <``` Modal.Open opens="delete">
``` **This below code doesnt not work,** ```