* 所有的 CDN 依賴已全部 npm 化 * Webpack? 一邊去! Vite 太好用啦! * 將 Imports.ts 剔除 * 移除了大量的靜態文件 * 將 index.html 的部分代碼分離 * 修改 deno task * 移除了動態編譯頁面的支持 * ./static 引用全部變更為 npm 包引用
21 lines
473 B
JavaScript
21 lines
473 B
JavaScript
/**
|
|
* 消息容器
|
|
* @returns { React.JSX.Element }
|
|
*/
|
|
export default function MessageContainer({ children, style, ...props } = {}) {
|
|
return (
|
|
<div style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
justifyContent: 'flex-end',
|
|
alignItems: 'center',
|
|
marginBottom: '20px',
|
|
height: "100%",
|
|
...style,
|
|
}}
|
|
{...props}>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|