mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-22 13:26:20 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
14
components/poll/vote-icon.tsx
Normal file
14
components/poll/vote-icon.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue