import * as Tooltip from '@radix-ui/react-tooltip' import Link from 'next/link' import { Button, IconHelpCircle, Modal } from 'ui' interface SpendCapModalProps { visible: boolean onHide: () => void } const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => { return ( onHide()}>

Enabling the spend cap sets a limit on your usage to stay within your plan's quota, which controls costs but can limit service. Disabling the spend cap removes these limits, but any extra usage beyond the plan's limit will be charged per usage.

Take a look at the following table to see which resources are chargeable and how they are charged:

{/* Maybe instead of a table, show something more interactive like a spend cap playground */} {/* Maybe ideate this in Figma first but this is good enough for now */}

Item

Limit

Rate

Database size

8GB

$0.125 per GB

Egress

250GB

$0.09 per GB

Auth MAUs

Monthly Active Users: A user that has made an API request in the last month

100,000

$0.00325 per user

Single Sign-On (SAML 2.0) MAUs

Single Sign-On Monthly Active Users: A user that has made an API request in the last month

50

$0.015 per user

Storage size

100GB

$0.021 per GB

Storage Image Transformations

100 origin images

$5 per 1000 origin images

Realtime concurrent peak connections

500

$10 per 1000

Realtime messages

5 Million

$2.50 per Million

Function invocations

2 Million

$2 per Million

Function count

100 functions

$10 per 100 functions

See{' '} pricing page {' '} for a full overview.

) } export default SpendCapModal