import React from 'react';
import Badge from '../badge';
import { pascalCase } from '../utils';
import './style';
import { jsx as _jsx } from "react/jsx-runtime";
function createStatusComponent(status) {
  const StatusComponent = ({
    children
  }) => /*#__PURE__*/_jsx(Badge, {
    status: status,
    text: children
  });
  StatusComponent.displayName = pascalCase(status);
  return StatusComponent;
}

/** 快捷操作，用于快速的展示一个状态 */
const Status = {
  Success: createStatusComponent('success'),
  Error: createStatusComponent('error'),
  Default: createStatusComponent('default'),
  Processing: createStatusComponent('processing'),
  Warning: createStatusComponent('warning'),
  success: createStatusComponent('success'),
  error: createStatusComponent('error'),
  default: createStatusComponent('default'),
  processing: createStatusComponent('processing'),
  warning: createStatusComponent('warning')
};
export const ProFieldBadgeColor = ({
  color,
  children
}) => /*#__PURE__*/_jsx(Badge, {
  color: color,
  text: children
});
export default Status;