@wordpress/block-library
Version:
Block library for the WordPress editor.
21 lines (19 loc) • 293 B
JavaScript
/**
* WordPress dependencies
*/
import { store } from '@wordpress/interactivity';
/**
* Internal dependencies
*/
import { browserSupportsPdfs } from './utils';
store(
'core/file',
{
state: {
get hasPdfPreview() {
return browserSupportsPdfs();
},
},
},
{ lock: true }
);