github.com/minio/console@v1.4.1/web-app/src/screens/Console/Common/DistributedOnly/DistributedOnly.tsx (about) 1 // This file is part of MinIO Console Server 2 // Copyright (c) 2021 MinIO, Inc. 3 // 4 // This program is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU Affero General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // This program is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU Affero General Public License for more details. 13 // 14 // You should have received a copy of the GNU Affero General Public License 15 // along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17 import React from "react"; 18 import { HelpBox, Box, Grid, breakPoints } from "mds"; 19 20 interface IDistributedOnly { 21 iconComponent: any; 22 entity: string; 23 } 24 25 const DistributedOnly = ({ iconComponent, entity }: IDistributedOnly) => { 26 return ( 27 <Grid container> 28 <Grid item xs={12}> 29 <HelpBox 30 title={`${entity} not available`} 31 iconComponent={iconComponent} 32 help={ 33 <Box 34 sx={{ 35 fontSize: "14px", 36 [`@media (max-width: ${breakPoints.sm}px)`]: { 37 display: "flex", 38 flexFlow: "column", 39 }, 40 }} 41 > 42 <span> 43 This feature is not available for a single-disk setup. 44 </span> 45 <span> 46 Please deploy a server in{" "} 47 <a 48 href="https://min.io/docs/minio/linux/operations/install-deploy-manage/deploy-minio-multi-node-multi-drive.html?ref=con" 49 target="_blank" 50 rel="noopener" 51 > 52 Distributed Mode 53 </a>{" "} 54 to use this feature. 55 </span> 56 </Box> 57 } 58 /> 59 </Grid> 60 </Grid> 61 ); 62 }; 63 64 export default DistributedOnly;