2024-03-03 22:09:33 -05:00
|
|
|
import React from "react"
|
2024-03-04 20:50:32 -05:00
|
|
|
import Separator from "./Separator"
|
2024-03-03 22:09:33 -05:00
|
|
|
|
|
|
|
|
const StatusField = ({
|
|
|
|
|
label,
|
|
|
|
|
statusLabel,
|
|
|
|
|
statusColor,
|
|
|
|
|
}: {
|
|
|
|
|
label: string
|
|
|
|
|
statusLabel: string
|
|
|
|
|
statusColor: string
|
|
|
|
|
}) => {
|
|
|
|
|
return (
|
2024-03-04 20:50:32 -05:00
|
|
|
<div className="flex flex-col gap-2">
|
|
|
|
|
<div className="flex flex-col gap-4">
|
|
|
|
|
<Separator/>
|
2024-03-04 23:33:49 -05:00
|
|
|
<h4 className="font-bold text-sm leading-tight text-indigo-900">{label}</h4>
|
2024-03-04 20:50:32 -05:00
|
|
|
</div>
|
2024-03-04 23:33:49 -05:00
|
|
|
<span className={`text-sm leading-tight ${statusColor}`}>{statusLabel}</span>
|
2024-03-03 22:09:33 -05:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default StatusField
|