register_post_meta( 'post_type_name', 'test_media', array(
'type' => 'number',
'default' => 0,
'single' => true,
'show_in_rest' => true,
) );
import {
TwebMetaMediaControl,
} from '@tigriweb/components/meta';
<TwebMetaMediaControl
label={ __('Media Label', 'your-theme-name') }
help={ __('Media Description', 'your-theme-name') }
metaKey="test_media"
/>