feat: add new preferences page

This commit is contained in:
Prayag Prajapati committed 2025-04-29 21:52:16 +05:30
1 parent 790f3f163b
commit dfb8eeee12
22 files changed
+790 -131

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
import { ListItem, ListItemButton, ListItemText } from "@mui/material";
import { Link, type ReactNode } from "@tanstack/react-router";
import React from "react";
interface ListItemLinkProps {
icon?: ReactNode;
primary: string;
to: string;
className?: string;
}
export default function ListItemLink(props: ListItemLinkProps) {
const { icon, primary, to, className } = props;
return (
<li>
{/* @ts-ignore */}
<ListItem
component={Link}
activeClassName="active"
className={className}
to={to}
>
<ListItemButton
style={{
borderRadius: "100px",
gap: "0.85em",
color: "white",
textDecoration: "none",
}}
>
<div className="material-symbols-rounded">{icon}</div>
<ListItemText primary={primary} />
</ListItemButton>
</ListItem>
</li>
);
}