Moved dice folder

This commit is contained in:
Mitchell McCaffrey
2020-05-28 13:06:33 +10:00
parent 1e0f767e73
commit b8e5554058
12 changed files with 22 additions and 22 deletions
+21
View File
@@ -0,0 +1,21 @@
import React from "react";
import { IconButton } from "theme-ui";
import Count from "./DiceButtonCount";
function DiceButton({ title, children, count, onClick }) {
return (
<IconButton
title={title}
aria-label={title}
onClick={onClick}
color="hsl(210, 50%, 96%)"
sx={{ position: "relative" }}
>
{children}
{count && <Count>{count}</Count>}
</IconButton>
);
}
export default DiceButton;