import React from "react"; import "../styles/detailcard.scss"; export const DetailCard = (props) => { const { data } = props; const { caseNumber, caption, jurisdiction, judge, venue, caseTags, trialDate, filedDate, contactName, contactEmail, leadAttorney, parties, } = data; console.log("caseTags", caseTags); return (

Trial Date:

{trialDate}

Date Filed:

{filedDate}

Lead attorney(s):

{" "} {leadAttorney ? leadAttorney : "Not listed"}

Jurisdiction:

{jurisdiction}

Venue:

{venue}

Contact:

{contactName}

Judge:

{judge}

Case Type:

{caseTags.map((tag) => (

{tag.tagName}
))}

Contact email:

{contactEmail}

); };