-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.jsx
38 lines (34 loc) · 944 Bytes
/
index.jsx
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
import { Unstyled } from '@storybook/addon-docs';
import styled from 'styled-components';
import Accordion from '../../../components/Accordion';
const urlGenerator = (componentName) =>
`https://docs.google.com/forms/d/e/1FAIpQLSewdS_VhSt_JSFOxiuiIc-auEj0MQwn_P_WiXYhAEAE1DqJhg/viewform?entry.1112120969=${componentName}`;
const IFrame = styled.iframe`
width: 100%;
height: 500px;
border: 0;
`;
const EvaluationForm = ({ componentName }) => (
<Unstyled>
<Accordion
items={[
{
content: (
<ul>
<li>
<IFrame
title="Rate our Documentation"
src={`${urlGenerator(componentName)}`}
>
Carregando…
</IFrame>
</li>
</ul>
),
title: 'Rate our Documentation ⭐ ',
},
]}
/>
</Unstyled>
);
export default EvaluationForm;