-
- {finalActions &&
- cloneElement(finalActions, {
- basePath,
- data: record,
- hasShow,
- hasList,
- resource,
- // Ensure we don't override any user provided props
- ...finalActions.props,
- })}
-
-
- {record ? (
- cloneElement(Children.only(children), {
- basePath,
- record,
- redirect:
- typeof children.props.redirect ===
- 'undefined'
- ? redirect
- : children.props.redirect,
- resource,
- save,
- saving,
- undoable,
- version,
- })
- ) : (
-
- )}
-
- {aside &&
- React.cloneElement(aside, {
- basePath,
- record,
- resource,
- version,
- save,
- saving,
- })}
-
-
-