import { forwardStyledRef } from '@/theme'; import { RowDataStyles as S } from './row-data.styles'; type RowDataProps = { leftIcon: React.ReactNode; label: string; rightComponent: React.ReactNode; onClick?: () => void; }; export const RowData = forwardStyledRef( ({ leftIcon, label, rightComponent, onClick, ...props }, ref) => { const handleOnClick = (): void => { if (onClick) onClick(); }; return ( {leftIcon} {label} {rightComponent} ); } ); RowData.displayName = 'RowData';