{CategoryListByPropertyData && CategoryListByPropertyData.length > 0 ?
: null}
{CategoryListByPropertyData && CategoryListByPropertyData.length > 0 ? (
// Row cards
!grid ? (
{isLoading
? // Show skeleton loading when data is being fetched
Array.from({ length: 8 }).map((_, index) => (
))
: CategoryListByPropertyData.map((ele) => (
))}
) : (
// Column cards
{CategoryListByPropertyData.map((ele, index) => (
))}
)
) : (
)}
{total > limit ? (
) : null}