I have an unexpected error with the OverlayTrigger component from React-Bootstrap ver. 5.1.1 I'm trying to create my own customized button component using overlaytrigger and a button. Everything works as I want except using a variable for the tooltip placement. It might just be because I am a typeScript noob but I don't know what to do when i see error messages like this. Has anyone else seen this problem before, know a workaround or perhaps know what to do with error messages like these in general?


