929f7445ed
* feat(CodeBlock): support matplotlib in code execution * refactor: update output style and docs * refactor: use ImageViewer * refactor: manage service config, increase timeout and retry count * refactor: improve worker message logging * chore: upgrade pyodide to 0.28.0 * docs: fix typos
24 lines
486 B
TypeScript
24 lines
486 B
TypeScript
import { Flex } from 'antd'
|
|
import { FC, memo, ReactNode } from 'react'
|
|
import styled from 'styled-components'
|
|
|
|
interface Props {
|
|
children: string | ReactNode
|
|
}
|
|
|
|
const StatusBar: FC<Props> = ({ children }) => {
|
|
return <Container>{children}</Container>
|
|
}
|
|
|
|
const Container = styled(Flex)`
|
|
background-color: var(--color-background-mute);
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
overflow-y: auto;
|
|
text-wrap: wrap;
|
|
`
|
|
|
|
export default memo(StatusBar)
|