@keycloakify/keycloak-account-ui
Version:
Repackaged Keycloak Account UI
8 lines • 588 B
JavaScript
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