updates
This commit is contained in:
17
frontend-web/src/components/Container/Container.tsx
Normal file
17
frontend-web/src/components/Container/Container.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import type {PropsWithChildren} from "react"
|
||||
export interface IContainerProps extends PropsWithChildren {
|
||||
style?: Record<string, string>;
|
||||
}
|
||||
|
||||
export function Container({style, children}: IContainerProps) {
|
||||
const containerStyle = Object.assign({}, style, {
|
||||
border: '2px solid white',
|
||||
width: '500px',
|
||||
height: '500px',
|
||||
margin: 'auto',
|
||||
display: 'flex'
|
||||
})
|
||||
return <div style={containerStyle}>
|
||||
{children}
|
||||
</div>
|
||||
}
|
||||
1
frontend-web/src/components/Container/index.ts
Normal file
1
frontend-web/src/components/Container/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './Container';
|
||||
Reference in New Issue
Block a user