title: AppCompatActivity instead of ComponentActivity in Jetpack compose
body: <p>I want to open <code>datePicker</code> dialog on a button click in Jetpack compose.<br />
  For that, I am using the below code inside the button's <code>onClick</code> action.</p>
  <pre><code>val context = LocalContext.current
  Button(onClick = {
      (context as AppCompatActivity).let {
          val picker = MaterialDatePicker.Builder.datePicker().build()
          picker.show(it.supportFragmentManager, picker.toString())
          picker.addOnPositiveButtonClickListener {
              // some code
          }
      }
  })
  </code></pre>
  <p>If I am using the <code>ComponentActivity</code>, <code>supportFragmentManager</code> is not supported.<br />
  Is it fine to extend the activity from <code>AppCompatActivity</code>?<br />
  Or is there any other way, I can get the solution if the above-mentioned solution is not correct?</p>