db and auth packages setup

This commit is contained in:
Om Lanke
2025-06-23 16:27:07 +05:30
parent c29f1c26aa
commit bc7ea74d1a
48 changed files with 4410 additions and 56 deletions

View File

@@ -0,0 +1,19 @@
import { Button } from "@workspace/ui/components/button";
import { auth } from "@workspace/auth";
export default async function Studs({
action,
logOut,
}: {
action: () => void;
logOut: () => void;
}) {
const session = await auth();
if (!session?.user) return null;
return (
<div className="flex gap-2">
<Button onClick={action} variant="outline">Click me</Button>
<Button onClick={logOut}>Sign Out</Button>
</div>
);
}