|
|
|
@ -2,19 +2,11 @@ import React from "react"; |
|
|
|
|
|
|
|
|
|
import penIcon from "./pen-icon.svg"; |
|
|
|
|
|
|
|
|
|
const CustomToast = ({ |
|
|
|
|
backgroundColor, |
|
|
|
|
borderColor, |
|
|
|
|
textColor, |
|
|
|
|
padding, |
|
|
|
|
icon, |
|
|
|
|
}) => { |
|
|
|
|
const CustomToast = ({ className, icon }) => { |
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className={`flex flex-row items-center border-2 rounded mt-4 font-sansbold text-sm ${backgroundColor} ${borderColor} ${textColor} ${padding} `} |
|
|
|
|
> |
|
|
|
|
<div className={`flex flex-row items-center text-sm rounded ${className} `}> |
|
|
|
|
<p className="flex-1">ترسیم نقشه سالن</p> |
|
|
|
|
<img src={icon} alt="pen" /> |
|
|
|
|
{icon && <img src={icon} alt="pen" />} |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
@ -22,9 +14,7 @@ const CustomToast = ({ |
|
|
|
|
export default CustomToast; |
|
|
|
|
|
|
|
|
|
CustomToast.defaultProps = { |
|
|
|
|
backgroundColor: "bg-[#489BEC33]", |
|
|
|
|
borderColor: "border-[#489BEC]", |
|
|
|
|
textColor: "text-[#0555A4]", |
|
|
|
|
padding: "p-4", |
|
|
|
|
className: |
|
|
|
|
"p-4 bg-[#489BEC33] border-[#489BEC] text-[#0555A4] mt-4 border-2 font-sansbold", |
|
|
|
|
icon: penIcon, |
|
|
|
|
}; |
|
|
|
|