import React from 'react'; import { type WardPatientCardType } from '../../types'; import AdmissionRequestNoteRow from '../../ward-patient-card/card-rows/admission-request-note-row.component'; import PendingItemsRow from '../../ward-patient-card/card-rows/pending-items-row.component'; import WardPatientCard from '../../ward-patient-card/ward-patient-card.component'; import styles from '../../ward-patient-card/ward-patient-card.scss'; import DefaultWardPatientCardHeader from './default-ward-patient-card-header.component'; import IncorrectAdmissionWarningRow from '../../ward-patient-card/card-rows/incorrect-admission-warning-row.component'; const DefaultWardPatientCard: WardPatientCardType = ({ wardPatient }) => { const { bed } = wardPatient; const card = ( ); if (bed) { return card; } else { return (
{card}
); } }; export default DefaultWardPatientCard;