import { useShowController, ShowControllerProps, ShowControllerResult, } from './useShowController'; /** * Render prop version of the useShowController hook * * @see useShowController * @example * * const ShowView = () =>
...
* const MyShow = () => ( * * {controllerProps => } * * ); */ export const ShowController = ({ children, ...props }: { children: (params: ShowControllerResult) => JSX.Element; } & ShowControllerProps) => { const controllerProps = useShowController(props); return children(controllerProps); };