import React from 'react';
import CharLimit from './decorators/CharLimit'
import styled from 'styled-components'
import FloatingLabel from './decorators/FloatingLabel'
import Dropdown from 'react-dropdown';
import { LANGS, THEMES } from './renderers/Code';
const RelPositioning = styled.div`
position: relative;
`
const FlexChild = styled.div`
display: block;
margin-left: 2em;
`
class TitleInput extends React.Component {
render() {
return (
);
}
}
class PasteInput extends React.Component {
render() {
return (
);
}
}
class PassInput extends React.Component {
render() {
return (
);
}
}
class GenericDropdown extends React.Component {
constructor(props) {
super(props)
this._onSelect = this._onSelect.bind(this)
}
_onSelect(option) {
this.props.onChange({
target: {
name: this.props.label,
value: option.label
}
});
}
render() {
return (
);
}
}
const ExpiryInput = (props) => {
const options = [
'5 years',
'1 year',
'1 month',
'1 week',
'1 day',
'1 hour',
'10 min',
];
return (
);
}
const LangInput = (props) => {
const options = Object.entries(LANGS).map((key, _) => {
return {
'value': key[1],
'label': key[0]
}
})
return (
);
}
const ThemeInput = (props) => {
const options = Object.entries(THEMES).map((key, _) => {
return {
'value': key[1],
'label': key[0]
}
})
return (
);
}
class PasteURLInput extends React.Component {
render() {
return (
);
}
}
export { TitleInput, PasteInput, PassInput, ExpiryInput, PasteURLInput, LangInput, ThemeInput }