{strategy_setting !== AUTO_UPDATE_STRATEGY.disabled && (
<>
handleChange('upgrade_time_of_day')(convertLocalSecondsToUTCDaySeconds(dayjsToTimeOfDay(v), timezone!))}
onClear={() => handleChange('upgrade_time_of_day')(convertLocalSecondsToUTCDaySeconds(0, timezone!))}
title={t(`${i18nPrefix}.updateTime`, { ns: 'plugin' })}
minuteFilter={minuteFilter}
renderTrigger={renderTimePickerTrigger}
placement="bottom-end"
/>
,
}}
/>
aria-label={t(`${i18nPrefix}.specifyPluginsToUpdate`, { ns: 'plugin' })}
className="mt-1 flex w-full"
value={[upgrade_mode]}
onValueChange={(nextValue) => {
const selectedValue = nextValue[0]
if (selectedValue)
handleChange('upgrade_mode')(selectedValue)
}}
>
{scopeOptions.map(option => (
key={option.value}
value={option.value}
className="flex-1 hover:bg-state-base-hover-alt data-pressed:text-text-accent-light-mode-only data-pressed:hover:bg-components-segmented-control-item-active-bg"
>
{option.label}
))}
{upgrade_mode !== AUTO_UPDATE_MODE.update_all && (
)}
>
)}