import { Link } from "react-router-dom";
import { Stack, Typography } from "@mui/material";
export const SearchCategoryResultItem = ({ category, onClick, link = "" } = {}) => {
const { _id = null, name = "" } = category || {};
return (
onClick && onClick()}>
{name.length > 30 ? `${name.substring(0, 30)}...` : name}
{_id}
);
};