You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monitor-doc/resources/js/Pages/Document/DocStatusItem.jsx

9 lines
245 B
Reat

import { statuses } from "@/utils";
import React from "react";
export default function DocStatusItem({ status }) {
const stat = statuses.find(i => i.key == status)
return (
<p style={{color: stat.color}}>{stat.value}</p>
)
}