{props.user.name || props.user.username}
{props.user.bio}
{eventTypes}
{eventTypes.length == 0 && (
Uh oh!
This user hasn't set up any event types yet.
import { GetServerSideProps } from "next"; import { HeadSeo } from "@components/seo/head-seo"; import Link from "next/link"; import prisma, { whereAndSelect } from "@lib/prisma"; import Avatar from "@components/Avatar"; import Theme from "@components/Theme"; import { ClockIcon, InformationCircleIcon, UserIcon } from "@heroicons/react/solid"; import React from "react"; import { ArrowRightIcon } from "@heroicons/react/outline"; export default function User(props): User { const { isReady } = Theme(props.user.theme); const eventTypes = props.eventTypes.map((type) => (
)); return ( <>{props.user.bio}
This user hasn't set up any event types yet.