Sorry for late reply, already fixed, i miss understood about array, so here the code that completely run as i want it.
$next_post = get_next_post();
get_the_post_thumbnail($next_post->ID, 'prev_next_img', array(
'class' => 'rounded-lg object-fill w-full max-h-full'
)) . '<h4 class="text-...
i think i already fix it, and now i have problem with customizing image width and height, here are my latest code.
$prev_post = get_previous_post();
get_the_post_thumbnail($prev_post->ID, 'custom-size-image', array(
'class' => 'rounded-lg object-cover',
'sizes' => 'width="371" height="270"'
)) . '&...