department-of-veterans-affairs/vets-website

View on GitHub
src/applications/vaos/new-appointment/components/VAFacilityPage/VAFacilityInfoMessage.jsx

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import State from '../../../components/State';
import NewTabAnchor from '../../../components/NewTabAnchor';
import InfoAlert from '../../../components/InfoAlert';

export default function VAFacilityInfoMessage({ facility }) {
  return (
    <InfoAlert
      status="info"
      headline="We found one facility that accepts online scheduling for this care"
    >
      <p>
        <strong>{facility.name}</strong>
        <br />
        {facility.address?.city}, <State state={facility.address?.state} />
      </p>
      <p>
        Not all VA facilities offer online scheduling for all types of care. If
        this isn’t the facility you’re looking for, you can{' '}
        <NewTabAnchor href="/find-locations">
          search for another VA facility
        </NewTabAnchor>
        .
      </p>
    </InfoAlert>
  );
}