// @flow strict import * as React from 'react'; import * as COLORS from '../../styles/variables/_color'; import classify from '../../utils/classify'; import css from './StatusIndicator.module.css'; type ClassNames = $ReadOnly<{wrapper?: string}>; export const STATUS_SEMANTIC = Object.freeze({ primary: 'primary', information: 'information', success: 'success', warning: 'warning', danger: 'danger', neutral: 'neutral', secondary: 'secondary', }); export type StatusSemanticType = $Values; export type StatusIndicatorProps = { classNames?: ClassNames, status?: StatusSemanticType, withBorder?: boolean, borderColorToken?: $Keys, disabled?: boolean, ... }; export const StatusIndicator: React$AbstractComponent< StatusIndicatorProps, HTMLDivElement, > = React.forwardRef( ( { classNames, status = 'information', withBorder, borderColorToken = 'colorBackgroundTertiary', disabled, ...props }: StatusIndicatorProps, ref, ): React.Node => (
), );