diff --git a/apps/website/app/[locale]/license/view/components/index.tsx b/apps/website/app/[locale]/license/view/components/index.tsx new file mode 100644 index 0000000..0dfc243 --- /dev/null +++ b/apps/website/app/[locale]/license/view/components/index.tsx @@ -0,0 +1,31 @@ +"use client"; + +import { SERVER_LICENSE_URL } from "../page"; + +interface Props { + customerId: string; +} +export const ManageSubscriptionButton = ({ customerId }: Props) => { + return ( + + ); +}; diff --git a/apps/website/app/[locale]/license/view/page.tsx b/apps/website/app/[locale]/license/view/page.tsx index ea19245..726903d 100644 --- a/apps/website/app/[locale]/license/view/page.tsx +++ b/apps/website/app/[locale]/license/view/page.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import { useParams } from "next/navigation"; +import { ManageSubscriptionButton } from "./components"; export const SERVER_LICENSE_URL = process.env.NODE_ENV === "development" @@ -10,7 +10,6 @@ const LicenseCard = ({ license, stripeSuscription }: any) => { return (