{
- if (rootEl?.current) {
- onRemove(e, rootEl.current);
- }
- }}
- removePlaceholder={removePlaceholder}
- indent={removable === 'indent'}
- >
-
+ {removable ? (
+ {
+ if (rootEl?.current) {
+ onRemove(e, rootEl.current);
+ }
+ }}
+ removePlaceholder={removePlaceholder}
+ indent={removable === 'indent'}
>
- {wrappedChildren}
-
-
- ) : (
- wrappedChildren
- )}
+