aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2024-03-06 16:42:31 -0600
committersonartech <sonartech@sonarsource.com>2024-03-08 20:02:34 +0000
commit4c11c2c2b1a22f30f3c3902e1c0a8ead39bd6cc5 (patch)
tree558ff5877106492792910ab89b18a0fb2c6d2952 /server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx
parent17f78ddbcf49047f3dcd7bdc829655546da0a4ca (diff)
downloadsonarqube-4c11c2c2b1a22f30f3c3902e1c0a8ead39bd6cc5.tar.gz
sonarqube-4c11c2c2b1a22f30f3c3902e1c0a8ead39bd6cc5.zip
SONAR-21656 Replace old icons with MIUI icons
Diffstat (limited to 'server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx')
-rw-r--r--server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx b/server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx
new file mode 100644
index 00000000000..636c759485c
--- /dev/null
+++ b/server/sonar-web/design-system/src/components/icons/MinimizeIcon.tsx
@@ -0,0 +1,31 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2024 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+import { useTheme } from '@emotion/react';
+import { themeColor } from '../../helpers/theme';
+import { CustomIcon, IconProps } from './Icon';
+
+export function MinimizeIcon({ fill = 'currentColor', ...iconProps }: Readonly<IconProps>) {
+ const theme = useTheme();
+ return (
+ <CustomIcon {...iconProps}>
+ <rect fill={themeColor(fill)({ theme })} height="2" rx="1" width="12" x="2" y="11" />
+ </CustomIcon>
+ );
+}