This paves the way for us to include embed types in the codebase without them automatically being available in the UI, reduces code duplication, reduces the chance of human error if embed types are spelled incorrectly in the tooltip code, and adds some additional type checking.
This also allows us to have different tooltips in different circumstances. For instance, we could test experimental embeds by rolling them out to !bobaland first, without affecting other boards.
This paves the way for us to include embed types in the codebase without them automatically being available in the UI, reduces code duplication, reduces the chance of human error if embed types are spelled incorrectly in the tooltip code, and adds some additional type checking.
This also allows us to have different tooltips in different circumstances. For instance, we could test experimental embeds by rolling them out to !bobaland first, without affecting other boards.