Implement a function that allows users to remove selected media files while creating a new post. This feature should enable users to easily manage and edit the media files they wish to include before finalising their post.
Requirements
Add a UI component (e.g., a "X" button) to each selected media file thumbnail in the new post creation screen.
Implement functionality to remove the selected media file from the post when the "Remove" button is clicked.
Ensure the remaining media files are correctly displayed and updated in real-time.
Description
Implement a function that allows users to remove selected media files while creating a new post. This feature should enable users to easily manage and edit the media files they wish to include before finalising their post.
Requirements