import { from } from 'rxjs' ; import { action } from '@storybook/addon-actions' ; import { DataPublicPluginStart } from '../../../../data/public' ; import { FieldFormatsStart } from '../../../../field_formats/public' ; import { getFormatService } from './format_service' ; const theme = { theme$ : from ( [ { darkMode : false } ] ) , } ; const data = { actions : { createFiltersFromValueClickAction : action ( 'createFiltersFromValueClickAction' ) , createFiltersFromRangeSelectAction : action ( 'createFiltersFromRangeSelectAction' ) , } , } as DataPublicPluginStart ; export const getStartDeps = async ( ) => ( { data , fieldFormats : getFormatService ( ) as FieldFormatsStart , kibanaTheme : theme , } ) ;