9c4c325e5a
* remove submodules * add api and ui files * update github actions * use sparse checkout * update node setup * update checkout * update docker * change permissions * update mariadb health check * update changelog
27 lines
434 B
TypeScript
27 lines
434 B
TypeScript
import { CheckCircleOutlined, CloseCircleOutlined } from '@ant-design/icons/lib'
|
|
import React from 'react'
|
|
|
|
interface Props {
|
|
isLive: boolean
|
|
}
|
|
|
|
export const FormIsLive: React.FC<Props> = (props) => {
|
|
if (props.isLive) {
|
|
return (
|
|
<CheckCircleOutlined
|
|
style={{
|
|
color: 'green',
|
|
}}
|
|
/>
|
|
)
|
|
}
|
|
|
|
return (
|
|
<CloseCircleOutlined
|
|
style={{
|
|
color: 'red',
|
|
}}
|
|
/>
|
|
)
|
|
}
|