Function: useSelectedSite()
useSelectedSite():
Site|undefined
Defined in: src/hooks/useSelectedSite.ts:54
Hook to get the currently selected site from coordinated store data.
Returnsโ
Site | undefined
The selected site object or undefined when no selection exists.
Remarksโ
This hook efficiently combines data from the UI store (selection state) and sites store (site data) using useMemo to prevent unnecessary recalculations. The memoization ensures the hook only recalculates when the selected site identifier or sites array actually changes.