'fun Modifier.constrainAs(ref: ConstrainedLayoutReference, constrainBlock: ConstrainScope.() -> Unit): Modifier' cannot be called in this context with an implicit receiver. Use an explicit receiver if necessary.
TextField(value = "Search", onValueChange = {},modifier = Modifier.constrainAs(
search,
constrainBlock = {}
))
'fun Modifier.constrainAs(ref: ConstrainedLayoutReference, constrainBlock: ConstrainScope.() -> Unit): Modifier' cannot be called in this context with an implicit receiver. Use an explicit receiver if necessary.