"use client"; import { Card, CardBody } from "@nextui-org/react"; import { DateWithTime } from "@/components/ui/entities"; import { UserProfileProps } from "@/types"; export const UserInfo = ({ user, }: { user: UserProfileProps["data"] | null; }) => { if (!user || !user.attributes) { return (

Name:

-

Email:

-

Company:

-

Date Joined:

-
Unable to load user information.
Please check your API connection.
); } const { name, email, company_name, date_joined } = user.attributes; return (

Name:

{name}

Email:

{email}

Company:

{company_name}

Date Joined:

); };