Add Paul's Toolbox Contents

This commit is contained in:
2024-03-01 18:33:29 +08:00
parent 65b2b86b78
commit 3ef694a468
28 changed files with 1534 additions and 366 deletions
+39
View File
@@ -0,0 +1,39 @@
import { IconBili, IconRead, IconSetting } from "~assets/icons";
import styles from "./popup.module.less";
const items = [
{
name: "在看",
icon: <IconRead />,
value: "read",
},
{
name: "增加手办",
icon: <IconBili />,
value: "toy",
},
{
name: "插件设置",
icon: <IconSetting />,
value: "options",
}
];
interface MenuProps {
onClick: (value: string) => void;
}
function Menu({ onClick }: MenuProps) {
return (
<div className={styles.menu}>
{items.map((item) => (
<div key={item.value} className={styles.item} onClick={() => onClick(item.value)}>
{item.icon && item.icon}
{item.name}
</div>
))}
</div>
);
}
export default Menu;