import { prisma } from '@/infrastructure/db/prisma';
import { RegisterForm } from './RegisterForm';
import styles from './register.module.css';

export default async function RegisterPage() {
    const branches = await prisma.branch.findMany({
        select: { id: true, name: true }
    });

    return (
        <div className={styles.container}>
            <RegisterForm branches={branches} />
        </div>
    );
}
