mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
31 lines
710 B
TypeScript
31 lines
710 B
TypeScript
import React from "react";
|
|
import { makeStyles } from "@material-ui/core/styles";
|
|
import { Fab } from "@material-ui/core";
|
|
import AddIcon from "@material-ui/icons/Add";
|
|
import useModals from "../../hooks/useModals";
|
|
|
|
const useStyles = makeStyles(() => ({
|
|
root: {
|
|
position: "absolute",
|
|
bottom: "25px",
|
|
right: "15px",
|
|
},
|
|
}));
|
|
|
|
export function NewMessageGroupButton() {
|
|
const classes = useStyles();
|
|
const { setShowNewMessageGroup } = useModals();
|
|
|
|
const handleClick = () => setShowNewMessageGroup(true);
|
|
|
|
return (
|
|
<div className={classes.root}>
|
|
<Fab color="primary" onClick={handleClick}>
|
|
<AddIcon />
|
|
</Fab>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default NewMessageGroupButton;
|