import { Button, _Space } from "antd"; import { useState } from "react"; import type { ISentHistoryData } from "./SentHistory" import SentHistoryItem from "./SentHistoryItem"; interface IWidget { data?: ISentHistoryData[]; oldContent?: string; } const SentHistoryGroupWidget = ({ data = [], oldContent }: IWidget) => { const [compact, setCompact] = useState(true); return ( <> {data.length > 0 ? (