mancala/src/components/board/StoneView.tsx

19 lines
432 B
TypeScript
Raw Normal View History

2022-07-14 08:53:26 +03:00
import * as React from "react";
import { FunctionComponent } from "react";
const StoneView: FunctionComponent<{ color: string }> = ({ color }) => {
return (
<div
style={{
background: color,
margin: "1px",
width: "1vw",
height: "1vw",
borderRadius: "10vw",
transition: "background-color 0.5s",
}}
2022-07-14 13:23:15 +03:00
/>
2022-07-14 08:53:26 +03:00
);
};
export default StoneView;