How to render cell based on condition - TanStack