import * as React from "react"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import { convertI18nText, I18nText } from "@/common"; import { TimelineBookmark } from "@/http/bookmark"; import IconButton from "../common/button/IconButton"; interface TimelineListItemProps { timeline: TimelineBookmark; } const TimelineListItem: React.FC = ({ timeline }) => { return (
{timeline.timelineOwner}/{timeline.timelineName}
); }; const TimelineListArrow: React.FC = () => { return (
); }; interface TimelineListViewProps { headerText?: I18nText; timelines?: TimelineBookmark[]; } const TimelineListView: React.FC = ({ headerText, timelines, }) => { const { t } = useTranslation(); return (

{convertI18nText(headerText, t)}

{timelines != null ? timelines.map((t) => ( )) : null}
); }; export default TimelineListView;