@atlaskit/object
Version:
An object is an icon that represents an Atlassian-specific content type.
21 lines • 389 B
JavaScript
import React from 'react';
/**
* __Object base__
*
* An object represents an Atlassian-specific content type.
*
*/
export default function ObjectBase({
label = '',
size = 'medium',
testId,
color,
icon: Icon
}) {
return /*#__PURE__*/React.createElement(Icon, {
label: label,
size: size === 'medium' ? 'medium' : 'small',
color: color,
testId: testId
});
}