import React from 'react'; import PropTypes from 'prop-types'; import { isFunction } from 'lodash'; import { getRightIcon, getWeightedPermissions, } from '../../../../helpers/utils/permission'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { formatDate } from '../../../../helpers/utils/util'; import Typography from '../../../ui/typography/typography'; import { TextColor } from '../../../../helpers/constants/design-system'; export default function UpdateSnapPermissionList({ approvedPermissions, revokedPermissions, newPermissions, }) { const t = useI18nContext(); const Permissions = ({ className, permissions, subText }) => { return getWeightedPermissions(t, permissions).map((permission) => { const { label, permissionName, permissionValue } = permission; return (