diff --git a/autogpt_platform/frontend/src/app/profile/page.tsx b/autogpt_platform/frontend/src/app/profile/page.tsx index c1df9e705..9d479732a 100644 --- a/autogpt_platform/frontend/src/app/profile/page.tsx +++ b/autogpt_platform/frontend/src/app/profile/page.tsx @@ -31,6 +31,8 @@ import { AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; +import useCredits from "@/hooks/useCredits"; +import { Input } from "@/components/ui/input"; export default function PrivatePage() { const { user, isLoading, error } = useUser(); @@ -38,6 +40,8 @@ export default function PrivatePage() { const router = useRouter(); const providers = useContext(CredentialsProvidersContext); const { toast } = useToast(); + const { credits } = useCredits(); + const [amount, setAmount] = useState(5); const [confirmationDialogState, setConfirmationDialogState] = useState< | { @@ -115,6 +119,10 @@ export default function PrivatePage() { [], ); + const handleTopUp = useCallback(() => { + + }, []); + if (isLoading || !providers) { return (