-
- {view.totalSolutions} solution
- {view.totalSolutions !== 1 ? "s" : ""}
- {selectedSolutionKeys.length > 0
- ? ` · ${selectedSolutionKeys.length} selected`
- : ""}
-
-
-
- setSelectedSolutionKeys(
- view.solutions.map((s, i) => solutionSelectionKey(s, i)),
- )
- }
- >
- Select all
-
- setSelectedSolutionKeys([])}
- >
- Clear selection
-
- {
- const selectedSolutions = view.solutions.filter((s, i) =>
- selectedSolutionKeys.includes(solutionSelectionKey(s, i)),
- );
- const state: RfqNavigationState = {
- okhId: selectedDesign!.id,
- okhTitle: formatOkhDisplayTitle(selectedDesign!.title),
- okhFunction: selectedDesign!.function ?? undefined,
- okhVersion: selectedDesign!.version ?? undefined,
- solutions: toRfqSolutions(
- selectedSolutions,
- websiteByFacilityId,
- ),
- };
- navigate("/rfq", { state });
- }}
- >
- Contact selected facilities →
-
-
-
-
- Select one or more facilities to generate outreach RFQs and
- arrange production. Each card also links to that solution’s supply
- tree when available.
-
- {view.solutions.map((s, i) => {
- const key = solutionSelectionKey(s, i);
- return (
-
- setSelectedSolutionKeys((prev) =>
- prev.includes(key)
- ? prev.filter((k) => k !== key)
- : [...prev, key],
- )
- }
- />
- );
- })}
+ {view.solutions.length === 0 ? (
+
+ ) : (
+ <>
+
+
+ {view.totalSolutions} solution
+ {view.totalSolutions !== 1 ? "s" : ""}
+ {selectedSolutionKeys.length > 0
+ ? ` · ${selectedSolutionKeys.length} selected`
+ : ""}
+
+
+
+ setSelectedSolutionKeys(
+ view.solutions.map((s, i) => solutionSelectionKey(s, i)),
+ )
+ }
+ >
+ Select all
+
+ setSelectedSolutionKeys([])}
+ >
+ Clear selection
+
+ {
+ const selectedSolutions = view.solutions.filter((s, i) =>
+ selectedSolutionKeys.includes(solutionSelectionKey(s, i)),
+ );
+ const state: RfqNavigationState = {
+ okhId: selectedDesign!.id,
+ okhTitle: formatOkhDisplayTitle(selectedDesign!.title),
+ okhFunction: selectedDesign!.function ?? undefined,
+ okhVersion: selectedDesign!.version ?? undefined,
+ solutions: toRfqSolutions(
+ selectedSolutions,
+ websiteByFacilityId,
+ ),
+ };
+ navigate("/rfq", { state });
+ }}
+ >
+ Contact selected facilities →
+
+
+
+
+ Select one or more facilities to generate outreach RFQs and
+ arrange production. Each card also links to that solution’s supply
+ tree when available.
+
+ {view.solutions.map((s, i) => {
+ const key = solutionSelectionKey(s, i);
+ return (
+
+ setSelectedSolutionKeys((prev) =>
+ prev.includes(key)
+ ? prev.filter((k) => k !== key)
+ : [...prev, key],
+ )
+ }
+ />
+ );
+ })}
+ >
+ )}
))}