import React, { ReactNode } from 'react'; import { Box } from './Box'; import { Text } from './Text'; import { Stack } from './Stack'; import { Button } from './Button'; interface JoinRequestItemProps { driverId: string; requestedAt: string | Date; onApprove: () => void; onReject: () => void; isApproving?: boolean; isRejecting?: boolean; } export function JoinRequestItem({ driverId, requestedAt, onApprove, onReject, isApproving, isRejecting, }: JoinRequestItemProps) { return ( {driverId.charAt(0)} {driverId} Requested {new Date(requestedAt).toLocaleDateString()} ); }