import React, { useState, useEffect } from "react"; import ReactGA from 'react-ga4'; import theme from "../theme.jsx"; import { useTheme } from "@material-ui/core/styles"; import { Paper, Typography, Divider, Button, Grid, Card, } from "@material-ui/core"; import { useAlert } from "react-alert"; const Branding = (props) => { const { globalUrl, userdata, serverside, billingInfo, stripeKey, selectedOrganization, handleGetOrg, } = props; const alert = useAlert(); const [publishingInfo, setPublishingInfo] = useState(""); // Should enable / disable org branding const handleChangePublishing = () => { console.log("Handle change publishing"); } const isOrganizationReady = () => { // A simple checklist to ensure the button shows up properly if (selectedOrganization.name === selectedOrganization.org) { return false; } if (selectedOrganization.large_image === "" || selectedOrganization.large_image === theme.palette.defaultImage) { return false; } return true } return (