chore: rename web_ui dir to web

This commit is contained in:
Junyan Qin
2025-04-28 21:41:03 +08:00
parent 5c74bb41c9
commit 2eaac168dc
81 changed files with 0 additions and 1 deletions
@@ -0,0 +1,44 @@
import styles from "./HomeSidebar.module.css";
export interface ISidebarChildVO {
id: string;
icon: string;
name: string;
route: string;
}
export class SidebarChildVO {
id: string;
icon: string;
name: string;
route: string;
constructor(props: ISidebarChildVO) {
this.id = props.id;
this.icon = props.icon;
this.name = props.name;
this.route = props.route;
}
}
export function SidebarChild({
icon,
name,
isSelected
}: {
icon: string;
name: string;
isSelected: boolean;
}) {
return (
<div
className={`${styles.sidebarChildContainer} ${isSelected ? styles.sidebarSelected : styles.sidebarUnselected}`}
>
<div className={`${styles.sidebarChildIcon}`} />
<div>
{icon}
{name}
</div>
</div>
);
}