HBM7XFBGVMKW3P3VZFNQTJMINZ4DC3D4TZMT4TPTJRXC62HKZMMQC 4RBE543WLHA7PIYT4W7YEJPF6XKZ2UGKPJBQ3CTLJ44AOMGHCEYQC DOQBQX4IQSDBYYSBP4BEMTMJUKZPSC33KKXPAGZ3A5BRJMMKHCRQC 4M3EBLTLSS2BRCM42ZP7WVD4YMRRLGV2P2XF47IAV5XHHJD52HTQC J2RLNDEXTGAV4BB6ANIIR7XJLJBHSB4NFQWSBWHNAFB6DMLGS5RAC ROQGXQWL2V363K3W7TVVYKIAX4N4IWRERN5BJ7NYJRRVB6OMIJ4QC O7W4FZVRKDQDAAXEW4T7P262PPRILRCSSACODMUTQZ6VNR36PVCQC M4UG5FMI5ICQRLJCCNSLV3ZKCGIXDQ65ECJM4PBE3NZYHT3CJLDAC POIBWSL3JFHT2KN3STFSJX3INSYKEJTX6KSW3N7BVEKWX2GJ6T7QC M3JUJ2WWZGCVMBITKRM5FUJMHFYL2QRMXJUVRUE4AC2RF74AOL5AC // Define a component for just the filter controlsexport const FilesFilter: React.FC<{clusterId: string;onFilterChange: (filter: NightFilter) => void;currentFilter: NightFilter;totalFiles?: number;}> = ({currentFilter,onFilterChange,totalFiles}) => {return (<div className="flex items-center gap-4"><div className="flex items-center"><selectid="nightFilter"value={currentFilter}onChange={(e) => onFilterChange(e.target.value as NightFilter)}className="rounded-md border border-gray-300 bg-white py-1 px-3 text-sm shadow-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"><option value="none">No filter</option><option value="solarNight">Solar night</option><option value="solarDay">Solar day</option><option value="civilNight">Civil night</option><option value="civilDay">Civil day</option></select></div>{totalFiles !== undefined && (<div className="text-gray-600 text-sm">{totalFiles} files</div>)}</div>);};
const handleFilterChange = (event: React.ChangeEvent<HTMLSelectElement>) => {const value = event.target.value as NightFilter;setNightFilter(value);setCurrentPage(1); // Reset to first page when changing filters};
// Removed handleFilterChange function since we now use external filter
{!hideHeaderInfo && (<div className="flex justify-between items-center mb-4"><h2 className="text-xl font-bold"><span className="text-gray-800">{clusterName}</span><span className="ml-2">Files</span></h2><div className="flex items-center gap-4"><div className="flex items-center"><selectid="nightFilter"value={nightFilter}onChange={handleFilterChange}className="rounded-md border border-gray-300 bg-white py-1 px-3 text-sm shadow-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary"><option value="none">No filter</option><option value="solarNight">Solar night</option><option value="solarDay">Solar day</option><option value="civilNight">Civil night</option><option value="civilDay">Civil day</option></select></div>{pagination && (<div className="text-gray-600 text-sm">{pagination.totalItems} files</div>)}</div></div>)}{hideHeaderInfo && (<h2 className="text-xl font-bold mb-4"><span className="text-gray-800">{clusterName}</span><span className="ml-2">Files</span></h2>)}
{/* Removed header section - now handled in AuthorisedContent */}
locationName,datasetName = "",hideDatasetName = false,
// locationName, // eslint-disable-line @typescript-eslint/no-unused-vars// datasetName = "", // eslint-disable-line @typescript-eslint/no-unused-vars// hideDatasetName = false, // eslint-disable-line @typescript-eslint/no-unused-vars
{!hideDatasetName && (<div className="flex justify-between items-center mb-4"><h2 className="text-xl font-bold"><span className="text-gray-800">{locationName}</span><span className="ml-2">Clusters</span></h2><div className="text-gray-600 text-sm flex items-center">{datasetName}</div></div>)}{hideDatasetName && (<h2 className="text-xl font-bold mb-4"><span className="text-gray-800">{locationName}</span><span className="ml-2">Clusters</span></h2>)}