add warn-alert
This commit is contained in:
20
src/components/Common/WarnAlert/index.jsx
Normal file
20
src/components/Common/WarnAlert/index.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
// import cls from "./index.module.css";
|
||||
import "./warn-alert.css";
|
||||
import AlertIcon from "./warn-icon.png";
|
||||
|
||||
function WarnAlert(props) {
|
||||
return (
|
||||
<div className="warn-alert">
|
||||
<h1 className="">
|
||||
<img src={AlertIcon} width={24} alt="icon" />
|
||||
{props.title || "test"}
|
||||
</h1>
|
||||
<p>
|
||||
{props.content ||
|
||||
"Lorem ipsum dolor sit amet consectetur."}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default WarnAlert;
|
||||
Reference in New Issue
Block a user