File size: 1,217 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
27
28
29
30
31
32
33
34
35
36
37
38
import React from 'react';
import { Container, Base, Error, Title, Text, TextSmall, Link, Input, Submit } from '../form/styles/form';

export default function Form({ children, ...restProps }) {
    return <Container { ...restProps}>{children}</Container>;
}

Form.Base = function FormBase({ children, ...restProps}) {
    return <Base { ...restProps}>{children}</Base>;
};

Form.Error = function FormError({ children, ...restProps}) {
    return <Error { ...restProps}>{children}</Error>;
};

Form.Title = function FormTitle({ children, ...restProps}) {
    return <Title { ...restProps}>{children}</Title>;
};

Form.Text = function FormText({ children, ...restProps}) {
    return <Text { ...restProps}>{children}</Text>;
};

Form.TextSmall = function FormTextSmall({ children, ...restProps}) {
    return <TextSmall { ...restProps}>{children}</TextSmall>;
};

Form.Link = function FormLink({ children, ...restProps}) {
    return <Link { ...restProps}>{children}</Link>;
};

Form.Input = function FormInput({ children, ...restProps}) {
    return <Input { ...restProps}>{children}</Input>;
};

Form.Submit = function FormSubmit({ children, ...restProps}) {
    return <Submit { ...restProps}>{children}</Submit>;
};