import { Box } from '@rocket.chat/fuselage'; import { Trans } from 'react-i18next'; export type AirGappedRestrictionWarningProps = { isRestricted: boolean; remainingDays: number }; const AirGappedRestrictionWarning = ({ isRestricted, remainingDays }: AirGappedRestrictionWarningProps) => { if (isRestricted) { return ( This air-gapped workspace is in read-only mode.{' '} Connect it to internet or upgraded to a premium plan to restore full functionality. ); } return ( This air-gapped workspace will enter read-only mode in {remainingDays} days.{' '} Connect it to internet or upgrade to a premium plan to prevent this. ); }; export default AirGappedRestrictionWarning;