/**
 * Timer component that displays elapsed time.
 * 
 * Updates every second and stops when game is completed.
 */

function Timer({ startTime, isActive = true }) {
  const { formattedTime } = useTimer(startTime, isActive);

  return React.createElement(
    'div',
    { className: 'timer' },
    React.createElement('span', { className: 'timer-label' }, 'Time: '),
    React.createElement('span', { className: 'timer-value' }, formattedTime)
  );
}


