import "./index.scss";
import * as React from "react";
import { compose, pure, withState, withHandlers } from "recompose";
type InputComponentProps = {
value: any;
onChange?: () => any;
};
type LabeledInputComponentProps = {
label: string;
} & InputComponentProps;
export type RawColorInputOuterProps = {} & InputComponentProps;
export type RawColorInputInputProps = {
currentInputIndex: number;
onSwitcherClick: () => any;
} & RawColorInputOuterProps;
const InputComponent = ({
value,
label,
onChange
}: LabeledInputComponentProps) => {
return (
{/*
*/}
);
};
const HexInputComponent = ({ value }: InputComponentProps) => {
return (
);
};
const RGBAInputComponent = ({ value }: InputComponentProps) => {
return (
);
};
const OPTIONS = [RGBAInputComponent, HexInputComponent];
const BaseRawColorInputComponent = ({
value,
onSwitcherClick
}: RawColorInputInputProps) => {
return (
);
};
const enhance = compose(
pure,
withState("currentInputIndex", "setCurrentInputIndex", 0),
withHandlers({
onSwitcherClick: () => () => {}
})
);
export const RawColorInputComponent = enhance(BaseRawColorInputComponent);