blob: dabbb94f2e39429cb989462047d716f7c42b9ae9 (
plain) (
blame)
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
|
import React from 'react';
import styled from 'styled-components'
import { LangInput, ThemeInput } from './Inputs'
const Bold = styled.span`
font-weight: 700
`
const StyledDiv = styled.div`
margin: 2em 0;
display: inline-block;
`
const Flex = styled.div`
float: right;
display: flex;
flex-direction: row;
transform: translateY(0.2em);
`
const PasteInfo = (props) => {
return (
<div>
<Flex>
<LangInput
value={props.lang}
onChange={props.onChange}
id="langInput" />
<ThemeInput
value={props.theme}
onChange={props.onChange}
id="themeInput" />
</Flex>
<StyledDiv>
<Bold>expires: </Bold>{props.expiry}
</StyledDiv>
</div>
);
}
export default PasteInfo
|