File size: 780 Bytes
1e92f2d |
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 |
import React from 'react';
import { Container, Input, Button, Text, Break } from './styles/opt-form';
export default function OptForm({ children, ...restProps }) {
return <Container {...restProps}>{children}</Container>;
}
OptForm.Input = function OptFormInput({ ...restProps }) {
return <Input {...restProps}></Input>;
};
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({ ...restProps }) {
return <Break {...restProps} />;
}; |