I do this a lot for React components. I could type it all out myself but that would essentially be busy work. Nothing is being solved by the AI other than me having to do less typing.
Once you start hoping the AI is going to solve your problems that is when you're asking for trouble.