import React from 'react' import cc from 'classcat' import { Icon } from '../_utils/icon' import { A11yProps, pickA11yProps } from '../_utils/interfaces' import { Avatar } from '../avatar' import { StarIcon } from '../icon' import { TextBody } from '../typography/body' import { StyledOption, StyledOptionList, StyledProfileLeft, StyledRatingLabel, StyledSubInfo, } from './ProfileLeft.style' type Option = Readonly<{ icon: React.ReactElement label: string }> export type ProfileLeftProps = A11yProps & Readonly<{ className?: string pictureUrl: string displayName: string isIdChecked?: boolean // Default to false // Some addtional information about the transporter e.g. '2 changes' for a bus // transporter. additionalInfo?: string // Average rating for the transporter. If both additionalInfo and // averageRating are defined, additionalInfo will be rendered first. averageRating?: string // List of options for the transporters: For carpool drivers, it will be // things like ladies-only, auto-accept, etc. For bus transporter, it might be // amenities like wifi, etc options?: ReadonlyArray