UNPKG

payload-authjs

Version:
32 lines (31 loc) 943 B
"use client"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { useRowLabel } from "@payloadcms/ui"; export const AccountRowLabel = ()=>{ const { data: account } = useRowLabel(); return /*#__PURE__*/ _jsxs("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem" }, children: [ /*#__PURE__*/ _jsx("img", { loading: "lazy", src: `https://authjs.dev/img/providers/${account.provider}.svg`, alt: "Provider", style: { width: "1.5rem", height: "1.5rem" } }), /*#__PURE__*/ _jsx("strong", { children: account.provider }), " (", account.providerAccountId, ")" ] }); }; //# sourceMappingURL=AccountRowLabel.js.map