UNPKG

@wordpress/block-library

Version:
25 lines (23 loc) 772 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { createElement } from "@wordpress/element"; /** * WordPress dependencies */ import { Icon } from '@wordpress/components'; import { withPreferredColorScheme } from '@wordpress/compose'; import { gallery as icon } from '@wordpress/icons'; /** * Internal dependencies */ import styles from './styles.scss'; const IconWithColorScheme = withPreferredColorScheme(_ref => { let { getStylesFromColorScheme } = _ref; const colorSchemeStyles = getStylesFromColorScheme(styles.icon, styles.iconDark); return createElement(Icon, _extends({ icon: icon }, colorSchemeStyles)); }); export const sharedIcon = createElement(IconWithColorScheme, null); //# sourceMappingURL=shared-icon.native.js.map