UNPKG

@blocklet/ui-react

Version:

Some useful front-end web components that can be used in Blocklets.

14 lines (13 loc) 413 B
import { joinURL as t } from "ufo"; function c(r) { const a = r.replace(/\/api\/space\/.+/, ""), e = r.replace(/\/$/, "").split("/").at(-4); return t(a, `/api/space/nft/display?spaceDid=${e}`); } function i(r) { const a = r.replace(/\/api\/space\/.+/, ""), e = r.replace(/\/$/, "").split("/").at(-4); return t(a, "space", e); } export { i as getSpaceHomeUrl, c as getSpaceNftDisplayUrlFromEndpoint };