add warn-alert

This commit is contained in:
lb
2024-04-15 15:57:37 +08:00
parent 19ea3287ae
commit 43635ff398
7 changed files with 81 additions and 32 deletions

View 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;