import { Link } from "react-router";
import { useIntl } from "react-intl";
import { HomeOutlined } from "@ant-design/icons";
import type { MenuProps } from "antd";
import { Menu, Row, Col } from "antd";
import {
AnthologyOutLinedIcon,
CourseOutLinedIcon,
TermOutlinedIcon,
TranslationOutLinedIcon,
} from "../../assets/icon";
interface IWidgetBlogNav {
selectedKey: string;
studio?: string;
}
const BlogNavWidget = ({ selectedKey, studio }: IWidgetBlogNav) => {
//Library head bar
const intl = useIntl(); //i18n
// TODO 换图标
const items: MenuProps["items"] = [
{
label: (
{intl.formatMessage({ id: "blog.overview" })}
),
key: "overview",
icon: ,
},
{
label: (
{intl.formatMessage({ id: "blog.palicanon" })}
),
key: "palicanon",
icon: ,
},
{
label: (
{intl.formatMessage({ id: "columns.library.course.title" })}
),
key: "course",
icon: ,
},
{
label: (
{intl.formatMessage({ id: "columns.library.anthology.title" })}
),
key: "anthology",
icon: ,
},
{
label: (
{intl.formatMessage({ id: "columns.library.term.title" })}
),
key: "term",
icon: ,
},
];
return (
);
};
export default BlogNavWidget;