import React from "react"; interface EarningsStatusProps { hasStripeAccount: boolean; onSetupClick: () => void; } const EarningsStatus: React.FC = ({ hasStripeAccount, onSetupClick, }) => { // No Stripe account exists if (!hasStripeAccount) { return (
Earnings Not Set Up

Set up earnings to automatically receive payments when rentals are completed.

); } // Account exists and is set up return (
Earnings Active

Your earnings are set up and working. You'll receive payments automatically.

Earnings Enabled: Yes
Status: Active

); }; export default EarningsStatus;