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.
9 lines
245 B
React
9 lines
245 B
React
2 years ago
|
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>
|
||
|
)
|
||
|
}
|