Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {binaryPrefixFormatter} from '@influxdata/giraffe'
// Types
import {Notification, NotificationStyle} from 'src/types'
// Constants
import {
FIVE_SECONDS,
TEN_SECONDS,
FIFTEEN_SECONDS,
} from 'src/shared/constants/index'
import {QUICKSTART_SCRAPER_TARGET_URL} from 'src/dataLoaders/constants/pluginConfigs'
import {QUICKSTART_DASHBOARD_NAME} from 'src/onboarding/constants/index'
import {IconFont} from '@influxdata/clockface'
const bytesFormatter = binaryPrefixFormatter({
suffix: 'B',
significantDigits: 2,
trimZeros: true,
})
type NotificationExcludingMessage = Pick<
Notification,
Exclude
>
const defaultErrorNotification: NotificationExcludingMessage = {
style: NotificationStyle.Error,
icon: IconFont.AlertTriangle,
duration: TEN_SECONDS,
}