mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
23 lines
453 B
TypeScript
23 lines
453 B
TypeScript
import React from 'react'
|
|
|
|
import './Notification.css'
|
|
|
|
interface IProps {
|
|
children: React.ReactNode | null
|
|
show: boolean
|
|
}
|
|
|
|
export default class Notification extends React.Component<IProps> {
|
|
constructor(props: IProps) {
|
|
super(props)
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<div className={'Notification ' + (this.props.show ? 'NotifShow' : '')}>
|
|
<div className="NotificationMessage">{this.props.children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
}
|