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 ? (
{data.length > 1 ? ( ) : undefined} {compact ? ( ) : (
{data.map((item, index) => { return ( ); })}
)}
) : undefined} ); }; export default SentHistoryGroupWidget;