import { useState } from "react"; import Avatar from "../common/Avatar"; import { formatUTCToLocalTime } from "../../utils/dateUtils"; const ExpenseStatusLogs = ({ data }) => { const [visibleCount, setVisibleCount] = useState(4); const logsToShow = data?.expenseLogs?.slice(0, visibleCount) || []; const handleShowMore = () => { setVisibleCount((prev) => prev + 4); }; return ( <>