# learnpress/4.3.9/assets/src/apps/js/blocks/course-elements/course-featured/edit.js

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.3.9. 21 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.3.9/code/assets/src/apps/js/blocks/course-elements/course-featured/edit.js
- Raw: https://pluginprobe.com/plugins/learnpress/4.3.9/raw/assets/src/apps/js/blocks/course-elements/course-featured/edit.js
- Modified: 2026-06-08T02:53:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.3.9/code/assets/src/apps/js/blocks/course-elements/course-featured/edit.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n';
import { useBlockProps, InspectorControls } from '@wordpress/block-editor';

const Edit = ( props ) => {
	const { attributes, setAttributes, context } = props;
	const blockProps = useBlockProps();
	const { lpCourseData } = context;

	const label = __( 'Featured', 'learnpress' );

	return (
		<>
			<div { ...blockProps } style={ { ...blockProps.style, display: 'inline-block' } }>
				{ label }
			</div>
		</>
	);
};

export default Edit;

```
