UNPKG

@wordpress/editor

Version:
21 lines (19 loc) 512 B
/** * Internal dependencies */ import PostTypeSupportCheck from '../post-type-support-check'; /** * Wrapper component that renders its children only if the post type supports the slug. * * @param {Object} props Props. * @param {Element} props.children Children to be rendered. * * @return {Component} The component to be rendered. */ export default function PostSlugCheck( { children } ) { return ( <PostTypeSupportCheck supportKeys="slug"> { children } </PostTypeSupportCheck> ); }