Unresolved reference: @MainActivity

Hello, im trying to make an image clickable, but i cant due to this error: Unresolved reference: @MainActivity


 Image( //shop
                        painter = painterResource(
                            id = R.drawable.shop_icon),
                        contentDescription = "shopIcon",
                        colorFilter = ColorFilter.tint(color = Yellow),
                        modifier = Modifier
                            .graphicsLayer {
                                translationX = -70f
                                translationY = 40f
                                            "Image Clicked",

What’s the rest of the code?
Also please format your code properly without too much indentation to make it easier to know what’s going on.
The issue likely is that there isn’t a MainActivity as a receiver in scope. Find where the activity instance is, and use it.