import * as React from 'react' ; import { useDrilldownManager } from '../context' ; import { TemplateList } from './template_list' ; export const TemplatePicker = ( ) => { const drilldowns = useDrilldownManager ( ) ; const { templates } = drilldowns . deps ; if ( ! templates || ! templates . length ) return null ; return < TemplateList items = { templates } />; } ;