@keycloakify/keycloak-account-ui
Version:
<p align="center"> <img src="https://github.com/user-attachments/assets/e31c4910-7205-441c-9a35-e134b806b3a8"> </p> <p align="center"> <i>Repackaged Keycloak Account UI</i> <br> <br> <a href="https://github.com/keycloakify/keycloak-a
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