import React from "react";

import { ExcludeKey } from "../utilities/type";

import TimelinePageTemplateUI, {
  TimelinePageTemplateUIProps,
} from "./TimelinePageTemplateUI";
import TimelineInfoCard, {
  OrdinaryTimelineManageItem,
} from "./TimelineInfoCard";

export type TimelinePageUIProps = ExcludeKey<
  TimelinePageTemplateUIProps<OrdinaryTimelineManageItem>,
  "CardComponent"
>;

const TimelinePageUI: React.FC<TimelinePageUIProps> = (props) => {
  return <TimelinePageTemplateUI {...props} CardComponent={TimelineInfoCard} />;
};

export default TimelinePageUI;
