We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2fcde commit e795e70Copy full SHA for e795e70
website/src/theme/PlatformTag/index.js
@@ -0,0 +1,14 @@
1
+import React from 'react';
2
+
3
+const PlatformTag = ({platform}) => {
4
+ const platformLabel = platform === 'ios' ? 'iOS' : 'Android';
5
+ return (
6
+ <div
7
+ className={`label ${platform}`}
8
+ title={`This section is related to ${platformLabel} platform`}>
9
+ {platformLabel}
10
+ </div>
11
+ );
12
+};
13
14
+export default PlatformTag;
0 commit comments