@wordpress/block-library
Version:
Block library for the WordPress editor.
8 lines (7 loc) • 1.22 kB
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/social-links/save.js"],
"sourcesContent": ["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';\n\nexport default function save( props ) {\n\tconst {\n\t\tattributes: {\n\t\t\ticonBackgroundColorValue,\n\t\t\ticonColorValue,\n\t\t\tshowLabels,\n\t\t\tsize,\n\t\t},\n\t} = props;\n\n\tconst className = clsx( size, {\n\t\t'has-visible-labels': showLabels,\n\t\t'has-icon-color': iconColorValue,\n\t\t'has-icon-background-color': iconBackgroundColorValue,\n\t} );\n\tconst blockProps = useBlockProps.save( { className } );\n\tconst innerBlocksProps = useInnerBlocksProps.save( blockProps );\n\n\treturn <ul { ...innerBlocksProps } />;\n}\n"],
"mappings": ";AAGA,OAAO,UAAU;AAKjB,SAAS,qBAAqB,qBAAqB;AAoB3C;AAlBO,SAAR,KAAuB,OAAQ;AACrC,QAAM;AAAA,IACL,YAAY;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,EACD,IAAI;AAEJ,QAAM,YAAY,KAAM,MAAM;AAAA,IAC7B,sBAAsB;AAAA,IACtB,kBAAkB;AAAA,IAClB,6BAA6B;AAAA,EAC9B,CAAE;AACF,QAAM,aAAa,cAAc,KAAM,EAAE,UAAU,CAAE;AACrD,QAAM,mBAAmB,oBAAoB,KAAM,UAAW;AAE9D,SAAO,oBAAC,QAAK,GAAG,kBAAmB;AACpC;",
"names": []
}