FrostByte/client-solid/src/Components/Buttons/Engegament.tsx

23 lines
610 B
TypeScript
Raw Normal View History

import { JSXElement } from "solid-js";
import { EngagementIcon } from "../../Util/Icons";
import { Post } from "../../Util/api";
export default function EngagementButton({ post }: { post: Post }): JSXElement {
return (
<>
<div class="flex p-1">
<button
2024-03-20 14:59:14 +01:00
class="btn btn-xs hover:border-primary rounded-base"
aria-label="Show sign of engagement"
>
<EngagementIcon />
</button>
2024-03-20 14:59:14 +01:00
<span class="text-1xl countdown text-center pt-1.5 px-1.5">
<p style={{ "--value": 46 }}>{post.votes}</p>
</span>
</div>
</>
);
}