Ghost
New
struxadotcloud
/
struxa
public
Star
0
Fork
0
Code
Issues
0
Pull requests
0
013aed1
1
branch
Go to file
t
Code
struxa
apps
web
src
app
(setup)
layout.tsx
feat: onboarding, admin dashboard fixes
0675674
5 months ago
8 lines · 296 B
1
import
{
redirect
}
from
"
next/navigation
"
;
2
import
{
checkSetupComplete
}
3
4
export
default
async
function
5
const
complete
=
6
if
(
complete
)
redirect
7
return
<>
{
children
}
8
}
from
"
@/lib/check-setup
"
;
SetupLayout
(
{
children
}
:
{
children
:
React
.
ReactNode
})
{
await
checkSetupComplete
()
;
(
"
/
"
)
;
</>
;