Use standard share icon for share post (instead of link icon)

Thanks Renato. For me the icon disappears.

<script type="text/discourse-plugin" version="0.8">
  api.replaceIcon('d-post-share', 'share-alt');
  api.replaceIcon('d-topic-share', 'share-alt');
</script>

To the header using a theme component (using the default theme). I get:

Screenshot from 2023-02-27 21-22-47

Do I need to do something else, maybe the icons need to be added?