UNPKG

@wordpress/block-library

Version:
8 lines (7 loc) 793 B
{ "version": 3, "sources": ["../../src/query-pagination/query-pagination-label-control.js"], "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { ToggleControl } from '@wordpress/components';\n\nexport function QueryPaginationLabelControl( { value, onChange } ) {\n\treturn (\n\t\t<ToggleControl\n\t\t\tlabel={ __( 'Show label text' ) }\n\t\t\thelp={ __( 'Make label text visible, e.g. \"Next Page\".' ) }\n\t\t\tonChange={ onChange }\n\t\t\tchecked={ value === true }\n\t\t/>\n\t);\n}\n"], "mappings": ";AAGA,SAAS,UAAU;AACnB,SAAS,qBAAqB;AAI5B;AAFK,SAAS,4BAA6B,EAAE,OAAO,SAAS,GAAI;AAClE,SACC;AAAA,IAAC;AAAA;AAAA,MACA,OAAQ,GAAI,iBAAkB;AAAA,MAC9B,MAAO,GAAI,4CAA6C;AAAA,MACxD;AAAA,MACA,SAAU,UAAU;AAAA;AAAA,EACrB;AAEF;", "names": [] }