Spaces:
Sleeping
Sleeping
File size: 595 Bytes
8765030 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import React from "react";
import { Grid, Typography, IconButton } from "@mui/material";
import CloseIcon from "@mui/icons-material/Close";
const WordCard = ({ word, id, deleteWord }) => {
return (
<Grid
container
alignItems="center"
justifyContent="space-between"
borderRadius={2}
border={1}
>
<Grid item>
<Typography margin={1}>{word}</Typography>
</Grid>
<Grid item>
<IconButton onClick={() => deleteWord(id)}>
<CloseIcon />
</IconButton>
</Grid>
</Grid>
);
};
export default WordCard;
|