mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
22 lines
488 B
TypeScript
22 lines
488 B
TypeScript
import React, { FC } from 'react';
|
|
|
|
interface Props {
|
|
message: any;
|
|
}
|
|
|
|
export const Alert: FC<Props> = props => {
|
|
const { message } = props;
|
|
return (
|
|
<div className="gf-form-group section">
|
|
<div className="alert-error alert">
|
|
<div className="alert-icon">
|
|
<i className="fa fa-exclamation-triangle" />
|
|
</div>
|
|
<div className="alert-body">
|
|
<div className="alert-title">{message}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|