mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-04-12 13:01:28 +08:00
27 lines
576 B
TypeScript
27 lines
576 B
TypeScript
import React from "react";
|
|
import { Button } from "@mui/material";
|
|
import styles from "../../styles";
|
|
|
|
export interface props {
|
|
name: string;
|
|
onClick: any;
|
|
children: React.ReactNode;
|
|
}
|
|
export default function SidebarButton(props: props) {
|
|
return (
|
|
<div
|
|
style={{
|
|
paddingBottom: 16,
|
|
}}
|
|
>
|
|
<Button
|
|
onClick={props.onClick}
|
|
variant="contained"
|
|
style={styles.sidebar_button}
|
|
>
|
|
{props.children}
|
|
<p style={styles.text}>{props.name}</p>
|
|
</Button>
|
|
</div>
|
|
);
|
|
}
|