UNPKG

@wordpress/block-library

Version:
8 lines (7 loc) 986 B
{ "version": 3, "sources": ["../../src/form-submission-notification/save.js"], "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useInnerBlocksProps, useBlockProps } from '@wordpress/block-editor';\n\n/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\nexport default function save( { attributes } ) {\n\tconst { type } = attributes;\n\n\treturn (\n\t\t<div\n\t\t\t{ ...useInnerBlocksProps.save(\n\t\t\t\tuseBlockProps.save( {\n\t\t\t\t\tclassName: clsx( 'wp-block-form-submission-notification', {\n\t\t\t\t\t\t[ `form-notification-type-${ type }` ]: type,\n\t\t\t\t\t} ),\n\t\t\t\t} )\n\t\t\t) }\n\t\t/>\n\t);\n}\n"], "mappings": ";AAGA,SAAS,qBAAqB,qBAAqB;AAKnD,OAAO,UAAU;AAMf;AAJa,SAAR,KAAuB,EAAE,WAAW,GAAI;AAC9C,QAAM,EAAE,KAAK,IAAI;AAEjB,SACC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG,oBAAoB;AAAA,QACxB,cAAc,KAAM;AAAA,UACnB,WAAW,KAAM,yCAAyC;AAAA,YACzD,CAAE,0BAA2B,IAAK,EAAG,GAAG;AAAA,UACzC,CAAE;AAAA,QACH,CAAE;AAAA,MACH;AAAA;AAAA,EACD;AAEF;", "names": [] }