Separate into components
This commit is contained in:
parent
6af3ff618c
commit
d97ffc9837
13 changed files with 441 additions and 143 deletions
13
web/app/challenges/[id]/components/loading-state.tsx
Normal file
13
web/app/challenges/[id]/components/loading-state.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use client'
|
||||
|
||||
type LoadingStateProps = {
|
||||
message: string
|
||||
}
|
||||
|
||||
export default function LoadingState({ message }: LoadingStateProps) {
|
||||
return (
|
||||
<div className='flex min-h-screen items-center justify-center bg-components-panel-bg'>
|
||||
<div className='text-text-tertiary'>{message}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue