diff --git a/apps/webapp/app/components/DefinitionTooltip.tsx b/apps/webapp/app/components/DefinitionTooltip.tsx new file mode 100644 index 000000000..ad02663f9 --- /dev/null +++ b/apps/webapp/app/components/DefinitionTooltip.tsx @@ -0,0 +1,33 @@ +import { Header3 } from "./primitives/Headers"; +import { Paragraph } from "./primitives/Paragraph"; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./primitives/Tooltip"; + +export function DefinitionTip({ + content, + children, + title, +}: { + content: React.ReactNode; + children: React.ReactNode; + title: React.ReactNode; +}) { + return ( + + + + + {children} + + + + {title} + {typeof content === "string" ? ( + {content} + ) : ( +
{content}
+ )} +
+
+
+ ); +} diff --git a/apps/webapp/app/components/billing/PricingTiers.tsx b/apps/webapp/app/components/billing/PricingTiers.tsx index 90989261d..1adb0cbde 100644 --- a/apps/webapp/app/components/billing/PricingTiers.tsx +++ b/apps/webapp/app/components/billing/PricingTiers.tsx @@ -6,6 +6,7 @@ import { CheckIcon, XMarkIcon } from "@heroicons/react/24/solid"; import SegmentedControl from "../primitives/SegmentedControl"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../primitives/Tooltip"; import { Header3 } from "../primitives/Headers"; +import { DefinitionTip } from "../DefinitionTooltip"; const pricingDefinitions = { concurrentRuns: { @@ -278,36 +279,6 @@ function TierContainer({ ); } -function DefinitionTip({ - content, - children, - title, -}: { - content: React.ReactNode; - children: React.ReactNode; - title: React.ReactNode; -}) { - return ( - - - - - {children} - - - - {title} - {typeof content === "string" ? ( - {content} - ) : ( -
{content}
- )} -
-
-
- ); -} - function RunsVolumeDiscountTable() { const runsVolumeDiscountRow = "flex justify-between border-b border-border last:pb-0 last:border-none py-2"; @@ -409,28 +380,6 @@ const options = [ { label: "Up to 100", value: "100" }, ]; -function UsageSlider() { - return ( -
- - - - - - -
- ); -} - function FeatureItem({ checked, children }: { checked?: boolean; children: React.ReactNode }) { return (