Spaces:
Runtime error
Runtime error
File size: 631 Bytes
cd6f98e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import React from "react";
const Ping = ({ color }: { color: "blue" | "white" }) => {
const colorClasses = {
primary: color == "blue" ? "bg-sky-400" : "bg-white",
secondary: color == "blue" ? "bg-sky-400" : "bg-white",
};
return (
<span className="absolute right-[-3px] top-[-3px] flex h-3 w-3">
<span
className={`absolute inline-flex h-full w-full animate-ping rounded-full ${colorClasses.secondary} opacity-75`}
></span>
<span
className={`relative inline-flex h-3 w-3 rounded-full opacity-90 ${colorClasses.primary}`}
></span>
</span>
);
};
export default Ping;
|