refactor: 重寫消息顯示相關邏輯

This commit is contained in:
CrescentLeaf
2025-09-21 16:11:13 +08:00
parent 28ffd134df
commit b3d620a329
2 changed files with 24 additions and 17 deletions

View File

@@ -0,0 +1,17 @@
interface Args extends React.HTMLAttributes<HTMLElement> {}
export default function MessageContainer({ children, style, ...props }: Args) {
return (
<div style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'flex-end',
alignItems: 'center',
marginBottom: '20px',
...style,
}}
{...props}>
{children}
</div>
)
}