{(q.data ?? []).map((b) => (
))}
{(q.data ?? []).length === 0 ? (
}
/>
) : null}
);
}
export function CustomerFavoriteStaff() {
const { tenantId } = useTenantId();
const q = useQuery({
queryKey: ["beauty", tenantId, "favorite-staff"],
queryFn: () => beautyBusinessApi.staff.list(tenantId!),
enabled: !!tenantId,
});
if (!tenantId || q.isLoading) return