Ghost
New
flaxo
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
4e505ca
34
branches
Go to file
t
Code
ghost
apps
web
src
app
[username]
settings
people
page.tsx
Add organizations with teams, policies, transfers and a shared namespace
83bc1c6
16 days ago
13 lines · 556 B
1
import
{
OrganizationPeople
}
from
"
@/components/organizations/organization-people
"
;
2
import
{
createServerClient
}
3
4
export
default
async
function
5
params
,
6
}
:
PageProps
<
7
const
{
username
:
8
const
client
=
9
const
{
data
10
const
role
=
11
12
return
<
OrganizationPeople
slug
13
}
from
"
@/lib/api/server
"
;
OrganizationPeoplePage
(
{
"
/[username]/settings/people
"
>
)
{
slug
}
=
await
params
;
await
createServerClient
()
;
}
=
await
client
.
GET
(
"
/api/organizations
"
)
;
data
?.
organizations
.
find
(
(
org
)
=>
org
.
slug
===
slug
)
?.
viewerRole
;
=
{
slug
}
isOwner
=
{
role
===
"
owner
"
}
/>
;