import React, {useEffect, useState} from 'react';
import {StyleSheet, View, Button} from 'react-native';
import FormbricksShow from '../features/Formbricks/Formbricks';

function ShowFormButton(): React.JSX.Element {
  const [isFormVisible, setIsFormVisible] = useState(false);

  return (
    <>
      <View>
        <Button
          title="Exibir formulário"
          onPress={() => {
            console.log(isFormVisible);
            setIsFormVisible(true);
          }}
        />
        {isFormVisible && <FormbricksShow />}
      </View>
    </>
  );
}

export default ShowFormButton;
