15 lines
300 B
TypeScript
15 lines
300 B
TypeScript
import { prisma } from '@repo/db';
|
|
import { Form } from '../_components/Form';
|
|
|
|
export default async () => {
|
|
const users = await prisma.user.findMany({
|
|
select: {
|
|
id: true,
|
|
firstname: true,
|
|
lastname: true,
|
|
publicId: true,
|
|
},
|
|
});
|
|
return <Form users={users} />;
|
|
};
|