import * as React from "react";
import { View, StyleSheet, Text } from "react-native";
import { IAPProps } from "./iap-type";
import CardPopup from "./theme1/card.popup";
import RowPopup from "./theme2/row.popup";

interface State {}

export default class IapKitScreen extends React.PureComponent<IAPProps, State> {
  constructor(props: IAPProps) {
    super(props);
    this.state = {};
  }

  public render(): React.ReactNode {
    if (this.props.theme === "theme1") {
      return <CardPopup {...this.props} />;
    }

    if (this.props.theme === "theme2") {
      return <RowPopup {...this.props} />;
    }
    return null;
  }
}
