Content
45 46 47 48 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 export function Analytics (props) const total0rderAmount, setTotal0rderAmount useState(0) ; const totalSubscribedAmount, setTotalSubscribedAmount useState (0); const churnRate, setChurnate useState(0); const subscriptionGrowthMonthOverMonth, setSubscriptionGrowthMonthOverMonth – useState (0) ; const revenueGrowthMonth0verMonth, setRevenueGrowthMonthOverMonth useState(0) ; const total0rderCount, setTota10rderCount – useState(); const totalCanceledSubscriptionCount, setTotalCanceledSubscriptionCount useState(0); const totalPausedSubscriptionCount, setTotalPausedSubscriptionCount useState(0); const totalCustomerCount, setTotalCustomerCount useState(0); const averageOrderValue, setAverageOrderValue useState (0); const moneyFormat, setMoneyFormat useState(); const orderSumByWeek, setOrderSumByWeek – useState(1); const subscriptionsTotalByWeek, setSubscriptionsTotalByWeek – useState(); const selectedDays, setSelectedDays useState (90); const fromDay, setfromDay useState(new Date()) ; const toDay, setToDay – useState(new Date()); const filterBy, setFilterBy useState(DAYS) ; const newSubscription, setNewSubscription useState(0); const estimatedVsHistoricalRevenue, setEstimatedsHistoricalRevenue useState() ; const productDeliveryAnalyticsList, setProductDeliveryAnalyticslist – useState(); const nextNinetyDayEstimatedRevenueTotal, setNextNinetyDayEstimatedRevenueTotal useState(0) ; const nextThirtyDayEstimatedRevenueTotal, setNextThirtyDayEstimatedRevenueTotal useState(0) ; const nextSevenDayEstimatedRevenueTotal, setNextSevenDayEstimatedRevenueTotal useState(0) ; const totalSubscriptionCount, setTotalSubscriptionCount – useState(0). const totalActiveSubscriptionCount, setTotalActiveSubscriptionCount useState (0) ; const totalfailedPaymentsCount, setTotalFailedPaymentsCount – useState(0); const averageSubscriptionValue, setAverageSubscriptionValue useState(0); const subscribedVsUnsubscribed, setSubscribedVsUnsubscribed useState(); const customDatePickerToggle, setCustomDatePickerToggle – useState (false); const fromDate, setfromDate – useState(null) const toDate, setToDate useState(null); const emailValidity, setEmailValidity – useState (true); const emailSendingProgress, setEmailSendingProgress – useState (false); const blurred, setBlurred useState(false); const inputValueForTestmailId, setInputValueForTestEmailId – useState(); const emailSuccessAlert, setEmailSuccessAlert useState(false); const emailfailAlert, setEmailfailAlert – useState(false); const isModa10pen, setIsModa10pen useState(false); const totalRecurringOrderCount, setTotalRecurringOrderCount – useState(0) ; const totalSkippedOrders, setTotalSkippedOrders useState(0); const approvalate, setApprovalRate – useState(0); const cancellationate, setCancellationate useState (0); const currencyCode, setCurrencyCode useState("’);