import { usePlatform } from "@/context/platform" import { Button } from "@opencode-ai/ui/button" import { useDialog } from "@opencode-ai/ui/context/dialog" import { Dialog } from "@opencode-ai/ui/dialog" import { JSX } from "solid-js" export type DialogGoUpsellProps = { title: string description: JSX.Element link?: string actionLabel: string onClose?: (dontShowAgain?: boolean) => void } export function DialogUsageExceeded(props: DialogGoUpsellProps) { const dialog = useDialog() const platform = usePlatform() const runAction = () => { if (props.link) platform.openLink(props.link) props.onClose?.() dialog.close() } const dismiss = () => { props.onClose?.(true) dialog.close() } return (
) }