UNPKG

@primer/components

Version:
16 lines (14 loc) 701 B
import React from 'react'; import styled from 'styled-components'; import { get } from '../constants'; import Spinner from '../Spinner'; import sx from '../sx'; const Animation = styled.div.withConfig({ displayName: "SelectMenuLoadingAnimation__Animation", componentId: "sc-17k54td-0" })(["padding:", " ", ";text-align:center;background-color:", ";", ""], get('space.6'), get('space.4'), get('colors.canvas.overlay'), sx); const SelectMenuLoadingAnimation = props => { return /*#__PURE__*/React.createElement(Animation, props, /*#__PURE__*/React.createElement(Spinner, null)); }; SelectMenuLoadingAnimation.displayName = "SelectMenuLoadingAnimation"; export default SelectMenuLoadingAnimation;