rallly/components/poll/vote-icon.tsx
2022-04-12 07:14:28 +01:00

14 lines
384 B
TypeScript

import * as React from "react";
import CheckCircle from "@/components/icons/check-circle.svg";
const VoteIcon: React.VoidFunctionComponent<{
type: "yes" | "no";
}> = ({ type }) => {
if (type === "yes") {
return <CheckCircle className="h-5 w-5 text-green-400" />;
}
return <span className="inline-block bg-slate-300 w-2 h-2 rounded-full" />;
};
export default VoteIcon;