aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-05-03 01:22:45 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-05-03 01:22:45 +0800
commite76a5f847e78fee4e62f6eb37d468557a1504c55 (patch)
tree4bcdeeeafb5bdc5945d855a22e6495926b5fbdd6 /docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx
parent4ddbf86780b7dd2f74f8fcc037ede1222f73f81e (diff)
downloadHydroRoll-e76a5f847e78fee4e62f6eb37d468557a1504c55.tar.gz
HydroRoll-e76a5f847e78fee4e62f6eb37d468557a1504c55.zip
Diffstat (limited to 'docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx')
-rw-r--r--docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx b/docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx
new file mode 100644
index 0000000..33e5bfd
--- /dev/null
+++ b/docs/components/pages/TRPG-home/PackBenchmarksPicker.tsx
@@ -0,0 +1,20 @@
+import { BenchmarkNumberOfModules } from "./PackBenchmarks";
+import { PackDropdown } from "./PackDropdown";
+
+export function PackBenchmarksPicker(props: {
+ setNumberOfModules: (num: BenchmarkNumberOfModules) => void;
+}) {
+ return (
+ <div className="flex items-center gap-3">
+ <a
+ className="dark:text-[#888888] hover:underline underline-offset-4 text-[#666666] text-sm"
+ href="https://github.com/retrofor/HydroRoll/blob/main/docs/components/pages/pack-home/benchmark-data"
+ >
+ React Components
+ </a>
+ <PackDropdown
+ onOptionSelected={(value) => props.setNumberOfModules(value)}
+ />
+ </div>
+ );
+}