mirror of
https://github.com/openziti/zrok.git
synced 2025-03-14 23:48:22 +01:00
25 lines
775 B
TypeScript
25 lines
775 B
TypeScript
|
import {Node} from "@xyflow/react";
|
||
|
import {Grid2, Typography} from "@mui/material";
|
||
|
import AccessIcon from "@mui/icons-material/Lan";
|
||
|
|
||
|
interface AccessPanelProps {
|
||
|
access: Node;
|
||
|
}
|
||
|
|
||
|
const AccessPanel = ({ access }: AccessPanelProps) => {
|
||
|
return (
|
||
|
<Typography component="div">
|
||
|
<Grid2 container spacing={2}>
|
||
|
<Grid2 >
|
||
|
<Grid2 container sx={{ flexGrow: 1, p: 1 }} alignItems="center">
|
||
|
<Grid2 display="flex"><AccessIcon sx={{ fontSize: 30, mr: 0.5 }}/></Grid2>
|
||
|
<Grid2 display="flex" component="h3">{String(access.data.label)}</Grid2>
|
||
|
</Grid2>
|
||
|
</Grid2>
|
||
|
</Grid2>
|
||
|
</Typography>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default AccessPanel;
|