Files
Monica Khoury afbc8bb3c2 fix: clarify restore project disk sizing behavior (#35607)
* fix: clarify restore project disk sizing behavior

* add disk can only be expanded
2025-05-14 15:30:50 +03:00

38 lines
1.5 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { NewProjectPrice } from './RestoreToNewProject.utils'
export const AdditionalMonthlySpend = ({
additionalMonthlySpend,
}: {
additionalMonthlySpend: NewProjectPrice
}) => {
return (
<div className="text-sm text-foreground-lighter border-t p-5">
<p>
The new project will start with the same compute size as your current project, but the disk
size will be slightly larger (1.25×) to ensure the restore completes successfully. You will
be able to update the compute size and increase the disk size after the new project is
created in{' '}
<span className="font-mono text-xs tracking-tighter text-foreground-light">
Project Settings &gt; Compute and Disk
</span>
</p>
<div className="flex flex-col gap-2 text-foreground mt-4">
<div className="flex justify-between">
<p>Additional Monthly Compute</p>
<p className="font-mono text-right text-light">${additionalMonthlySpend.computePrice}</p>
</div>
<div className="flex justify-between">
<p>Additional Monthly Disk</p>
<p className="font-mono text-right text-light">${additionalMonthlySpend.diskPrice}</p>
</div>
<div className="flex justify-between border-t pt-2">
<p>Total</p>
<p className="font-mono text-right text-brand">
${additionalMonthlySpend.computePrice + additionalMonthlySpend.diskPrice}
</p>
</div>
</div>
</div>
)
}