You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
873 B
TypeScript

// Copyright (C) 2021 Intel Corporation
//
// SPDX-License-Identifier: MIT
import React from 'react';
import Location from './location';
import consts from '../../consts';
interface Props {
selectedRegion: any;
onSelectRegion: any;
internalCommonProps: any;
}
export default function S3Region(props: Props): JSX.Element {
const {
selectedRegion,
onSelectRegion,
internalCommonProps,
} = props;
return (
<Location
selectedRegion={selectedRegion}
onSelectRegion={onSelectRegion}
internalCommonProps={internalCommonProps}
values={consts.DEFAULT_AWS_S3_REGIONS}
name='region'
label='Region'
href='https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions'
/>
);
}