However there is no need of a theme component, Discourse itself can create a “My Posts” button adding to the site setting top menu the posted entry:
top menu
posted