-
Notifications
You must be signed in to change notification settings - Fork 213
/
Copy pathHelpCallout.tsx
44 lines (40 loc) · 1.1 KB
/
HelpCallout.tsx
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styled from 'styled-components';
import { Link } from './Link';
const RainbowHeader = styled.div`
background-image: ${p =>
`linear-gradient(to right, ${p.theme.rainbowLight})`};
padding: 1rem;
box-sizing: border-box;
border-radius: 4px;
&:before {
content: '';
display: block;
height: 3rem;
margin-top: -3rem;
visibility: hidden;
}
`;
const HelpCallout = () => (
<RainbowHeader>
<FormattedMessage
defaultMessage="If you have questions, EthStaker community is a good place to get help!
You can find support on {discord} or {reddit}."
values={{
discord: (
<Link primary inline to="https://dsc.gg/ethstaker">
Discord
</Link>
),
reddit: (
<Link primary inline to="https://reddit.com/r/ethstaker">
Reddit
</Link>
),
}}
description="{variables} social media platform links to Discord and Reddit (do not translate names)"
/>
</RainbowHeader>
);
export default HelpCallout;