-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
33 lines (28 loc) · 822 Bytes
/
index.js
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
import React from 'react';
import {
Container,
Input,
Button,
Text,
Break
} from './styles/optForm';
export default function OptForm({ children, ...restProps }) {
return <Container {...restProps}>{children}</Container>;
};
OptForm.Input = function OptFormInput({...restProps}) {
return <Input {...restProps} />;
};
OptForm.Button = function OptFormButton({children, ...restProps}) {
return (
<Button {...restProps}>
{children}
<img src="/images/icons/chevron-right.png" alt="Try Now" />
</Button>
);
};
OptForm.Text = function OptFormText({children, ...restProps}) {
return <Text {...restProps}>{children}</Text>;
};
OptForm.Break = function OptFormBreak({children, ...restProps}) {
return <Break {...restProps}>{children}</Break>
}