import { Col, Row } from "antd"; import { useNavigate } from "react-router"; import AnthologyDetail from "../article/AnthologyDetail"; import { fullUrl } from "../../utils"; interface IWidget { anthologyId?: string; courseId?: string; } const TextBookWidget = ({ anthologyId, courseId }: IWidget) => { const navigate = useNavigate(); console.log("anthologyId", anthologyId); return (
{ const url = `/article/textbook/${articleId}?mode=read&course=${courseId}`; if (target === "_blank") { window.open(fullUrl(url), "_blank"); } else { navigate(url); } }} />
); }; export default TextBookWidget;