mirror of
https://github.com/UiO-Gaming/name-100-uio-gamers.git
synced 2026-11-05 13:56:53 +01:00
create howtoplaybutton component
This commit is contained in:
1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { IoHelpCircle } from "react-icons/io5";
|
||||||
|
|
||||||
|
interface HowToPlayButtonProps {
|
||||||
|
onClick: () => void;
|
||||||
|
ariaLabel: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const HowToPlayButton: React.FC<HowToPlayButtonProps> = ({ onClick, ariaLabel }) => (
|
||||||
|
<button
|
||||||
|
className="text-accent border-accent hover:bg-accent cursor-pointer rounded-full border bg-white p-2 text-2xl duration-300 hover:text-white"
|
||||||
|
onClick={onClick}
|
||||||
|
aria-label={ariaLabel}
|
||||||
|
>
|
||||||
|
<IoHelpCircle />
|
||||||
|
</button>
|
||||||
|
);
|
||||||
|
|
||||||
|
export default HowToPlayButton;
|
||||||
Reference in new issue
Block a user