/**
* @file History panel component
* Aggregation layer that combines history sections
*/
import * as React from "react";
import { useHistory } from "../../../contexts/history/context";
import { useI18n } from "../../../i18n/context";
import { PropertySection } from "../parts/PropertySection";
import { HistoryControls } from "../../controls/history/HistoryControls";
import { HistoryList } from "../../controls/history/HistoryList";
import styles from "../../controls/history/HistoryPanel.module.css";
/**
* History panel component
*/
export const HistoryPanel: React.FC = () => {
const { state, canUndo, canRedo, undo, redo } = useHistory();
const { t } = useI18n();
const handleUndo = React.useEffectEvent(() => {
undo();
});
const handleRedo = React.useEffectEvent(() => {
redo();
});
const headerActions = (
);
return (
);
};
HistoryPanel.displayName = "HistoryPanel";