I saw your problems and I leave my opinion. To dynamically control argTypes in Storybook, you can explore using the dependsOn feature or a custom function with the control property. This setup lets you adjust the available options based on another control’s value.
But, as of October 2023, Storybook doesn’t offer a direct way to handle dynamic options within argTypes. But don’t worry! You can achieve similar results by using decorators in your stories.