23 lines
571 B
JavaScript
23 lines
571 B
JavaScript
// @flow
|
|
import * as React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import InputSelect, { type Props, type Option } from "components/InputSelect";
|
|
|
|
const InputSelectRole = (props: $Rest<Props, { options: Array<Option> }>) => {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<InputSelect
|
|
label={t("Role")}
|
|
options={[
|
|
{ label: t("Member"), value: "member" },
|
|
{ label: t("Viewer"), value: "viewer" },
|
|
{ label: t("Admin"), value: "admin" },
|
|
]}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default InputSelectRole;
|