mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
30 lines
625 B
TypeScript
30 lines
625 B
TypeScript
import React from 'react';
|
|
import { makeStyles } from '@material-ui/core/styles';
|
|
import { Fab } from '@material-ui/core';
|
|
import CreateIcon from '@material-ui/icons/Create';
|
|
|
|
const useStyles = makeStyles(() => ({
|
|
root: {
|
|
position: 'absolute',
|
|
bottom: '75px',
|
|
right: '15px',
|
|
},
|
|
button: {
|
|
background: '#00acee',
|
|
},
|
|
}));
|
|
|
|
export function TweetButton({ openModal }) {
|
|
const classes = useStyles();
|
|
|
|
return (
|
|
<div className={classes.root}>
|
|
<Fab className={classes.button} color='primary' onClick={openModal}>
|
|
<CreateIcon />
|
|
</Fab>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default TweetButton;
|