@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 709 B
Source Map (JSON)
{"version":3,"file":"query-pagination-label-control.mjs","names":[],"sources":["../../src/query-pagination/query-pagination-label-control.jsx"],"sourcesContent":["import { __ } 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,SAAgB,4BAA6B,EAAE,OAAO,YAAa;CAClE,OACC,oBAAC,eAAD;EACC,OAAQ,GAAI,iBAAkB;EAC9B,MAAO,GAAI,8CAA6C;EAC7C;EACX,SAAU,UAAU;CACpB,CAAA;AAEH"}