next-enterprise/components/Form/StatusField.tsx

25 lines
456 B
TypeScript
Raw Normal View History

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/>
<h4>{label}</h4>
</div>
2024-03-03 22:09:33 -05:00
<span className={statusColor}>{statusLabel}</span>
</div>
)
}
export default StatusField