UNPKG

@keycloakify/keycloak-account-ui

Version:
8 lines 588 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Trans } from "react-i18next"; export const SharedWith = ({ permissions: p = [] }) => (_jsx("div", { "data-testid": `shared-with-${p.length ? p.map((e) => e.username) : "none"}`, children: _jsxs(Trans, { i18nKey: "resourceSharedWith", count: p.length, children: [_jsx("strong", { children: { username: p[0] ? p[0].username : undefined, } }), _jsx("strong", { children: { other: p.length - 1, } })] }) })); //# sourceMappingURL=SharedWith.js.map