UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

28 lines (25 loc) 1.01 kB
import { listItemCodeSize } from './listTokens.js'; import { useListContext } from './ListContext.js'; import '../Typography/index.js'; import '../../utils/metaAttribute/index.js'; import '../../utils/assignWithoutSideEffects/index.js'; import { jsx } from 'react/jsx-runtime'; import { Code } from '../Typography/Code/Code.js'; import { assignWithoutSideEffects } from '../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js'; import { MetaConstants } from '../../utils/metaAttribute/metaConstants.js'; var _ListItemCode = function _ListItemCode(_ref) { var children = _ref.children, testID = _ref.testID; var _useListContext = useListContext(), size = _useListContext.size; return /*#__PURE__*/jsx(Code, { size: listItemCodeSize[size], children: children, testID: testID }); }; var ListItemCode = /*#__PURE__*/assignWithoutSideEffects(_ListItemCode, { componentId: MetaConstants.ListItemCode }); export { ListItemCode }; //# sourceMappingURL=ListItemCode.js.map