summaryrefslogtreecommitdiff
path: root/docs/src/components/codes/OsSupport.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/components/codes/OsSupport.jsx')
-rw-r--r--docs/src/components/codes/OsSupport.jsx26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/src/components/codes/OsSupport.jsx b/docs/src/components/codes/OsSupport.jsx
new file mode 100644
index 0000000..2cb60c9
--- /dev/null
+++ b/docs/src/components/codes/OsSupport.jsx
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: CC-BY-NC-SA-4.0
+ */
+
+import React from "react";
+import PropTypes from "prop-types";
+import OsSupportIcon from "./OsSupportIcon";
+import FootnoteRefs from "./FootnoteRefs";
+
+export default function OsSupport({ value, footnotes = [] }) {
+ return (
+ <>
+ <OsSupportIcon value={value} />
+ {footnotes.length > 0 ? (
+ <FootnoteRefs footnotes={footnotes} />
+ ) : undefined}
+ </>
+ );
+}
+
+OsSupport.propTypes = {
+ value: PropTypes.oneOf([true, false, null]),
+ footnotes: PropTypes.array.isRequired,
+};