import React from 'react' ; import { ActionFactoryPicker } from '../action_factory_picker' ; import { useDrilldownManager } from '../context' ; import { CreateDrilldownForm } from './create_drilldown_form' ; export const FormDrilldownWizard = ( { } ) => { const drilldowns = useDrilldownManager ( ) ; const actionFactory = drilldowns . useActionFactory ( ) ; const drilldownState = drilldowns . getDrilldownState ( ) ; let content = null ; if ( ! actionFactory ) content = null ; if ( drilldownState ) content = < CreateDrilldownForm state = { drilldownState } />; return ( < > < ActionFactoryPicker /> { content } < />); } ;