(entityId: EntityId)
| 58 | * or in the plugin-browser webpack config. |
| 59 | */ |
| 60 | export const getWebIdFromEntityId = (entityId: EntityId) => |
| 61 | entityId.split("~")[0] as WebId; |
| 62 | |
| 63 | export const getUser = (): Promise<LocalStorage["user"] | null> => { |
| 64 | return queryGraphQlApi<MeQuery, MeQueryVariables>(meQuery) |