diff --git a/apps/dashboard/src/components/payments/purchase-quantity-selector.tsx b/apps/dashboard/src/components/payments/purchase-quantity-selector.tsx new file mode 100644 index 000000000..10325ceab --- /dev/null +++ b/apps/dashboard/src/components/payments/purchase-quantity-selector.tsx @@ -0,0 +1,99 @@ +"use client"; + +import { DesignInput } from "@/components/design-components/input"; +import { DesignButton } from "@/components/design-components/button"; +import { Typography } from "@/components/ui"; +import { MinusIcon, PlusIcon } from "@phosphor-icons/react"; +import { shortenedInterval } from "./purchase-utils"; + +type PriceData = { + USD?: string, + interval?: [number, string], +}; + +type Props = { + quantityInput: string, + quantityNumber: number, + onQuantityChange: (value: string) => void, + isTooLarge: boolean, + selectedPriceId: string, + priceData: PriceData, +}; + +export function PurchaseQuantitySelector({ + quantityInput, + quantityNumber, + onQuantityChange, + isTooLarge, + selectedPriceId, + priceData, +}: Props) { + return ( +