#### Fix dangling comment print in components (#18629 by @fisker)

<!-- prettier-ignore -->
```flow
// Input
component A(
  // comment  
) {}
component B(/* comment */) {}

// Prettier stable
component A() // comment
{}
component B /* comment */() {}

// Prettier main
component A(
  // comment
) {}
component B(/* comment */) {}
```
