import React from 'react'; import { RefreshPicker } from '@grafana/ui'; import memoizeOne from 'memoize-one'; import { css } from 'emotion'; import classNames from 'classnames'; import { ResponsiveButton } from './ResponsiveButton'; const getStyles = memoizeOne(() => { return { selectButtonOverride: css` label: selectButtonOverride; .select-button-value { color: white !important; } `, }; }); type Props = { splitted: boolean; loading: boolean; onRun: () => void; refreshInterval: string; onChangeRefreshInterval: (interval: string) => void; showDropdown: boolean; }; export function RunButton(props: Props) { const { splitted, loading, onRun, onChangeRefreshInterval, refreshInterval, showDropdown } = props; const styles = getStyles(); const runButton = ( ); if (showDropdown) { return ( ); } return runButton; }