כיצד ניתן להוסיף toggle button לתפריט הפוסט וליישם פעולה עבור אותו toggle button ב-Discourse plugin?

Therefore, what file structure should be implemented, and where should the above code be placed?