import React from "react";
import { useEthers } from "@usedapp/core";
import { HStack, View } from "native-base";
import { isEmpty } from "lodash";
import { W3Wrapper } from "../../W3Wrapper";
import { GoodIdContextProvider } from "@gooddollar/web3sdk-v2";
import { Provider } from "react-native-paper";
import { GoodIdDetails, GoodIdProvider } from "../../../apps/goodid";
import { GoodUIi18nProvider, useGoodUILanguage } from "../../../theme";
import { GoodButton } from "../../../core";
const GoodIdWrapper = ({ children }) => {
return {children};
};
export const GoodIdDetailsScreen = {
render: (args: any) => {
const { account = "" } = useEthers();
const { setLanguage } = useGoodUILanguage();
const styles = Object.values(args.styles).filter((styleprop: any) => !isEmpty(styleprop));
return (
setLanguage("en")}>English
setLanguage("es-419")}>Spanish
);
},
args: {
account: "0x25a65fAaFb6168a3B05da736d9Df018F62608e83",
styles: {
container: {},
header: {},
section: {},
innerContainer: {
width: "100%"
}
}
}
};
export default {
title: "Apps/GoodIdDetails",
component: GoodIdDetails,
decorators: [
(Story: any) => (
)
],
argTypes: {}
};