aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/pages/pack-home/DocsBenchmarksGraph.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/DocsBenchmarksGraph.tsx
parentdb74ade0234a40c2120ad5f2a41bee50ce13de02 (diff)
downloadHydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz
HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip
😀
Diffstat (limited to 'docs/components/pages/pack-home/DocsBenchmarksGraph.tsx')
-rw-r--r--docs/components/pages/pack-home/DocsBenchmarksGraph.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/components/pages/pack-home/DocsBenchmarksGraph.tsx b/docs/components/pages/pack-home/DocsBenchmarksGraph.tsx
new file mode 100644
index 0000000..7fb9d55
--- /dev/null
+++ b/docs/components/pages/pack-home/DocsBenchmarksGraph.tsx
@@ -0,0 +1,31 @@
+import { useState } from "react";
+import {
+ BenchmarkBar,
+ BenchmarkCategory,
+ BenchmarkNumberOfModules,
+} from "./PackBenchmarks";
+import { BenchmarksGraph } from "./PackBenchmarksGraph";
+import { PackBenchmarksPicker } from "./PackBenchmarksPicker";
+
+export function DocsBenchmarksGraph(props: {
+ bars: BenchmarkBar[];
+ category: BenchmarkCategory;
+}) {
+ const [numberOfModules, setNumberOfModules] =
+ useState<BenchmarkNumberOfModules>("1000");
+ return (
+ <div className="my-10">
+ <BenchmarksGraph
+ bars={props.bars}
+ category={props.category}
+ numberOfModules={numberOfModules}
+ pinTime
+ />
+ <div className="flex justify-center mt-6">
+ <PackBenchmarksPicker
+ setNumberOfModules={setNumberOfModules}
+ ></PackBenchmarksPicker>
+ </div>
+ </div>
+ );
+}