learnhouse/front/app/_orgs/[orgslug]/page.tsx
2023-05-06 21:18:58 +02:00

21 lines
675 B
TypeScript

"use client";
import { Title } from "@components/UI/Elements/Styles/Title";
import { getUriWithOrg } from "@services/config/config";
import Link from "next/link";
import { usePathname } from "next/navigation";
const OrgHomePage = (params: any) => {
const orgslug = params.params.orgslug;
const pathname = usePathname();
return (
<div>
<Title>Welcome {orgslug} 👋🏻</Title>
<Link href={getUriWithOrg(orgslug, "/courses")}>
<button className="rounded-md bg-black antialiased ring-offset-purple-800 p-2 px-5 font text-sm font-bold text-white drop-shadow-lg">See Courses </button>
</Link>
</div>
);
};
export default OrgHomePage;