Skip to content

Commit 147a517

Browse files
authored
Add device hub icon (#772)
Signed-off-by: AAJELLAL <[email protected]>
1 parent 4d86123 commit 147a517

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Copyright (c) 2025, RTE (http://www.rte-france.com)
3+
* This Source Code Form is subject to the terms of the Mozilla Public
4+
* License, v. 2.0. If a copy of the MPL was not distributed with this
5+
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6+
*/
7+
8+
import DeviceHub from '@material-symbols/svg-400/outlined/device_hub.svg?react';
9+
import { useTheme } from '@mui/material';
10+
11+
interface DeviceHubProps {
12+
style?: React.CSSProperties;
13+
}
14+
export function DeviceHubIcon({ style }: DeviceHubProps) {
15+
const theme = useTheme();
16+
17+
const defaultStyle: React.CSSProperties = {
18+
width: 15,
19+
height: 15,
20+
fill: theme.palette.text.primary,
21+
};
22+
return <DeviceHub style={{ ...defaultStyle, ...style }} />;
23+
}

src/components/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
*/
77
export { LeftPanelOpenIcon } from './LeftPanelOpenIcon';
88
export { LeftPanelCloseIcon } from './LeftPanelCloseIcon';
9+
export { DeviceHubIcon } from './DeviceHubIcon';

0 commit comments

Comments
 (0)