import React from "react" import type { BillingCycle } from "@/api/subscription" interface BillingCycleSwitchProps { value: BillingCycle onChange: (cycle: BillingCycle) => void monthlyPrice: number yearlyPrice: number } /** 自定义计费周期切换组件 */ export const BillingCycleSwitch: React.FC = ({ value, onChange, monthlyPrice, yearlyPrice, }) => (
) interface SpinnerProps { size?: "small" | "large" } /** 自定义 Spinner 组件 */ export const Spinner: React.FC = ({ size = "large" }) => (
)