import {useState} from "react";
import {Button} from "@mui/material";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import {CCategoryEdit} from "./CategoryEdit";
import {timeCalc} from "../../ProductPage/timeCalc";
export const CategoryFound = ({item}) => {
let [state, setState] = useState(false)
let formattedTime = 0;
if (['createdAt'] in item) {
formattedTime = timeCalc(+item.createdAt);
}
return (
!state ?
:
)
}