feat(components/system): implement Window
This commit is contained in:
parent
4b9290636f
commit
6e253823ba
19
src/components/system/Window/Window.tsx
Normal file
19
src/components/system/Window/Window.tsx
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { Fragment } from 'react'
|
||||||
|
|
||||||
|
import { TitleBar } from '../TitleBar'
|
||||||
|
|
||||||
|
interface WindowProps {
|
||||||
|
children: React.ReactNode
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Window: React.FC<WindowProps> = ({ children }) => {
|
||||||
|
return (
|
||||||
|
<Fragment>
|
||||||
|
<TitleBar />
|
||||||
|
|
||||||
|
<main className='relative flex items-center justify-center py-20 h-full w-screen flex-col bg-[#242424]'>
|
||||||
|
{children}
|
||||||
|
</main>
|
||||||
|
</Fragment>
|
||||||
|
)
|
||||||
|
}
|
1
src/components/system/Window/index.ts
Normal file
1
src/components/system/Window/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './Window'
|
Loading…
Reference in New Issue
Block a user