mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-24 12:48:47 +00:00
feat(cloud): add billing wip
This commit is contained in:
@@ -1,33 +1,12 @@
|
||||
import { ShowNodes } from "@/components/dashboard/settings/cluster/nodes/show-nodes";
|
||||
import { ShowBilling } from "@/components/dashboard/settings/billing/show-billing";
|
||||
import { DashboardLayout } from "@/components/layouts/dashboard-layout";
|
||||
import { SettingsLayout } from "@/components/layouts/settings-layout";
|
||||
import { api } from "@/utils/api";
|
||||
import { IS_CLOUD, validateRequest } from "@dokploy/server";
|
||||
import type { GetServerSidePropsContext } from "next";
|
||||
import React, { type ReactElement } from "react";
|
||||
|
||||
const Page = () => {
|
||||
const { data } = api.stripe.getProducts.useQuery();
|
||||
console.log(data);
|
||||
return (
|
||||
<div className="flex flex-col gap-4 w-full">
|
||||
{data?.map((product) => (
|
||||
<div key={product.id} className="border p-4 rounded-lg shadow-md">
|
||||
<h2 className="text-xl font-semibold">{product.name}</h2>
|
||||
{product.description && (
|
||||
<p className="text-gray-500">{product.description}</p>
|
||||
)}
|
||||
<p className="text-lg font-bold">
|
||||
Price: {product.default_price.unit_amount / 100}{" "}
|
||||
{product.default_price.currency.toUpperCase()}
|
||||
</p>
|
||||
{/* <button className="mt-2 px-4 py-2 bg-blue-500 text-white rounded">
|
||||
Subscribe
|
||||
</button> */}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
return <ShowBilling />;
|
||||
};
|
||||
|
||||
export default Page;
|
||||
|
||||
Reference in New Issue
Block a user