2024-03-22 13:27:11 +01:00
|
|
|
import { JSXElement, Show, useContext } from "solid-js";
|
|
|
|
|
|
|
|
import { LoginContext } from "../../Context/GlobalState";
|
2024-03-22 20:39:34 +01:00
|
|
|
import { ReplyIcon } from "../../Util/Icons";
|
2024-03-22 13:27:11 +01:00
|
|
|
|
|
|
|
export default function ReplyButton(): JSXElement {
|
|
|
|
const login_ctx = useContext(LoginContext)!;
|
|
|
|
return (
|
|
|
|
<Show when={login_ctx.loggedIn()}>
|
|
|
|
<div class="flex p-1">
|
|
|
|
<button
|
|
|
|
class="rounded-base btn btn-xs hover:border-primary"
|
|
|
|
aria-label="Report post or comment"
|
|
|
|
>
|
|
|
|
<ReplyIcon />
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</Show>
|
|
|
|
);
|
|
|
|
}
|