mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
* feat(phone/settings): Add streamer mode setting and PictureReveal component :) * feat(phone/settings): Add PictureReveal streamer mode to twitter and improve its theme a bit
34 lines
844 B
TypeScript
34 lines
844 B
TypeScript
import React from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { makeStyles } from '@material-ui/core/styles';
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
import { faRetweet } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
interface IProps {
|
|
profileName: string;
|
|
}
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
root: {
|
|
color: theme.palette.secondary.main,
|
|
fontSize: '16px',
|
|
justifyContent: 'flex-start',
|
|
width: '100%',
|
|
paddingBottom: '8px',
|
|
marginBottom: '6px',
|
|
marginTop: '-6px',
|
|
},
|
|
}));
|
|
|
|
function Retweet({ profileName }: IProps) {
|
|
const { t } = useTranslation();
|
|
const classes = useStyles();
|
|
return (
|
|
<div className={classes.root}>
|
|
<FontAwesomeIcon icon={faRetweet} /> {profileName} {t('APPS_TWITTER_RETWEETED')}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Retweet;
|