// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { CustomStyleRulesCallback } from 'common/custom-theme'; import { MenuItem, Select } from '@mui/material'; import withStyles from '@mui/styles/withStyles'; import Lock from '@mui/icons-material/Lock'; import People from '@mui/icons-material/People'; import Public from '@mui/icons-material/Public'; import { WithStyles } from '@mui/styles'; import { SelectProps } from '@mui/material/Select'; import { SelectItem } from './select-item'; import { VisibilityLevel } from 'store/sharing-dialog/sharing-dialog-types'; type VisibilityLevelSelectClasses = 'root'; const VisibilityLevelSelectStyles: CustomStyleRulesCallback = theme => ({ root: { } }); export const VisibilityLevelSelect = withStyles(VisibilityLevelSelectStyles)( ({ classes, includePublic, ...props }: { includePublic: boolean } & SelectProps & WithStyles) => ); const renderPermissionItem = (value: string) => ; const getIcon = (value: string) => { switch (value) { case VisibilityLevel.PUBLIC: return Public; case VisibilityLevel.ALL_USERS: return Public; case VisibilityLevel.SHARED: return People; case VisibilityLevel.PRIVATE: return Lock; default: return Lock; } };