Checks that Preview is only used with Composable functions.