| 1 |
import { __ } from '@wordpress/i18n'; |
| 2 |
import { Placeholder } from '@wordpress/components'; |
| 3 |
import { useBlockProps } from '@wordpress/block-editor'; |
| 4 |
|
| 5 |
const Edit = ( props ) => { |
| 6 |
const blockProps = useBlockProps(); |
| 7 |
|
| 8 |
return ( |
| 9 |
<div { ...blockProps }> |
| 10 |
<Placeholder |
| 11 |
label={ __( 'Single Course (Legacy)', 'learnpress' ) } |
| 12 |
> |
| 13 |
<div> |
| 14 |
{ |
| 15 |
__( |
| 16 |
'Display full content of Single Course, can not edit.', |
| 17 |
'learnpress' |
| 18 |
) |
| 19 |
} |
| 20 |
</div> |
| 21 |
</Placeholder> |
| 22 |
</div> |
| 23 |
); |
| 24 |
}; |
| 25 |
|
| 26 |
export default Edit; |
| 27 |
|