import { Typography } from "antd"; import { Link } from "react-router"; const { Title, Text } = Typography; export interface IChapterInfo { title: string; subTitle?: string; summary?: string; cover?: string; book?: number; para?: number; } interface IWidgetPaliChapterHeading { data: IChapterInfo; } const ChapterHeadWidget = (prop: IWidgetPaliChapterHeading) => { return ( <> <Link to={`/article/chapter/${prop.data.book}-${prop.data.para}`}> {prop.data.title} </Link>
{prop.data.subTitle ? prop.data.subTitle : ""}
); }; export default ChapterHeadWidget;