import { User } from '../../gql'
import { useState } from 'react'
const Registration = ({ registration }: { registration: User }) => {
return (
Registration: {registration.name}
)
}
const Registrations = ({
registrations,
className,
}: {
registrations?: User[]
className: string
}) => {
const [show, setShow] = useState(false)
return (
Registrations setShow(!show)}>({registrations?.length ?? 0})
{show &&
(registrations?.length ? (
{registrations.map((registration) => (
))}
) : (
No registrations found.
))}
)
}
export default Registrations