aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/pages/pack-home/PackBenchmarksPicker.tsx
diff options
context:
space:
mode:
authorHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
committerHsiangNianian <admin@jyunko.cn>2023-04-22 19:52:26 +0800
commit4838df315931bb883f704ec3e1abe2685f296cdf (patch)
tree57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/pages/pack-home/PackBenchmarksPicker.tsx
parentdb74ade0234a40c2120ad5f2a41bee50ce13de02 (diff)
downloadHydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz
HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip
😀
Diffstat (limited to 'docs/components/pages/pack-home/PackBenchmarksPicker.tsx')
-rw-r--r--docs/components/pages/pack-home/PackBenchmarksPicker.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/components/pages/pack-home/PackBenchmarksPicker.tsx b/docs/components/pages/pack-home/PackBenchmarksPicker.tsx
new file mode 100644
index 0000000..dd3fc15
--- /dev/null
+++ b/docs/components/pages/pack-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/vercel/turbo/blob/main/docs/components/pages/pack-home/benchmark-data"
+ >
+ React Components
+ </a>
+ <PackDropdown
+ onOptionSelected={(value) => props.setNumberOfModules(value)}
+ />
+ </div>
+ );
+}