| 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 |
<div class="search-course"> |
| 11 |
<input type="text" name="s" autocomplete="off" placeholder="Search for course content" /> |
| 12 |
<button name="submit" aria-label="Search for course content"> |
| 13 |
<i class="lp-icon-search"></i> |
| 14 |
</button> |
| 15 |
</div> |
| 16 |
</div> |
| 17 |
); |
| 18 |
}; |
| 19 |
|
| 20 |
export default Edit; |
| 21 |
|