In my plugin settings I got the custom post type set in variable $clientlogocptname
$clientlogocptname = get_option( 'clientlogocpt-select' );
How do I retrive the value of $clientlogocptname setting and pass it in getEntityRecords in "custompost_type" gutenberg block?? Is it possible to get the value in the block or can you suggest a better way?
const data = useSelect((select) => {
return select('core').getEntityRecords('postType', 'custompost_type');
});