{t('Expiration')}
{
const next = values.find((value) => value !== field.value)
if (next) field.onChange(next as AccessTokenExpiryPreset)
}}
aria-label={t('Expiration')}
variant='outline'
spacing={2}
className='grid w-full grid-cols-3 gap-2 sm:grid-cols-6'
>
{ACCESS_TOKEN_EXPIRY_OPTIONS.map((option) => (
{t(option.labelKey)}
))}
{expiry === 'never' && (
{t(
'A token that never expires stays valid until you revoke it. Set an expiration date when possible.'
)}
)}
)}
/>
{expiry === 'custom' && (