import React from 'react'; import clamp from 'lodash/clamp'; import { css, cx } from '@leafygreen-ui/emotion'; import { Theme } from '@leafygreen-ui/lib'; import { progressBarBackgroundStyle, progressBarBackgroundThemeStyle, progressBarStyle, progressBarThemeStyle, } from './ProgressBar.styles'; interface ProgressBarProps { progress: number; theme: Theme; } /** * The progress bar for `variant = 'progress'` toasts * * @internal */ function ToastProgressBar({ progress, theme }: ProgressBarProps) { const normalizedProgress = clamp(progress, 0, 1) * 100; return (
); } ToastProgressBar.displayName = 'ToastProgressBar'; export default ToastProgressBar;