AdditionalMonthlySpend.tsx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { NewProjectPrice } from './RestoreToNewProject.utils'
  2. export const AdditionalMonthlySpend = ({
  3. additionalMonthlySpend,
  4. }: {
  5. additionalMonthlySpend: NewProjectPrice
  6. }) => {
  7. return (
  8. <div className="text-sm text-foreground-lighter border-t p-5">
  9. <p>
  10. The new project will start with the same compute size as your current project, but the disk
  11. size will be slightly larger (1.25×) to ensure the restore completes successfully. You will
  12. be able to update the compute size and increase the disk size after the new project is
  13. created in{' '}
  14. <span className="font-mono text-xs tracking-tighter text-foreground-light">
  15. Project Settings &gt; Compute and Disk
  16. </span>
  17. </p>
  18. <div className="flex flex-col gap-2 text-foreground mt-4">
  19. <div className="flex justify-between">
  20. <p>Additional Monthly Compute</p>
  21. <p className="font-mono text-right text-light">${additionalMonthlySpend.computePrice}</p>
  22. </div>
  23. <div className="flex justify-between">
  24. <p>Additional Monthly Disk</p>
  25. <p className="font-mono text-right text-light">${additionalMonthlySpend.diskPrice}</p>
  26. </div>
  27. <div className="flex justify-between border-t pt-2">
  28. <p>Total</p>
  29. <p className="font-mono text-right text-brand">
  30. ${additionalMonthlySpend.computePrice + additionalMonthlySpend.diskPrice}
  31. </p>
  32. </div>
  33. </div>
  34. </div>
  35. )
  36. }