- {isSearching && results.length > 0 && (
-
-
- Fetching UK Visa Jobs...
-
- )}
- {results.length === 0 ? (
-
- {isSearching ? (
- <>
-
-
Searching...
-
- Fetching fresh UK Visa Jobs listings.
-
- >
- ) : (
- <>
-
- No results yet
-
-
- Run a search to fetch fresh UK Visa Jobs listings.
-
- >
- )}
-
- ) : (
- <>
-
-
- {
- if (checked === true) {
- setSelectedJobIds(
- new Set(results.map((job) => jobKey(job))),
- );
- } else {
- setSelectedJobIds(new Set());
- }
- }}
- aria-label="Select all jobs on this page"
- />
- Select page
-
- {selectedCount} selected
-
-
-
-
- {results.map((job) => {
- const key = jobKey(job);
- const isSelected = key === selectedJobId;
- const isChecked = selectedJobIds.has(key);
- const description = job.jobDescription
- ? clampText(stripHtml(job.jobDescription))
- : "No description.";
-
- return (
-
-
- {
- setSelectedJobIds((current) => {
- const next = new Set(current);
- if (checked) {
- next.add(key);
- } else {
- next.delete(key);
- }
- return next;
- });
- }}
- aria-label={`Select ${job.title}`}
- />
-
-
-
- );
- })}
-
-
-
- Showing {summaryCounts.startIndex}-{summaryCounts.endIndex}{" "}
- of {totalJobs}
-
-
-
-
- Page {page} of {totalPages}
-
-
-
-
- >
- )}
-
-
-