aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/ExamplesArea.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'docs/components/ExamplesArea.tsx')
-rw-r--r--docs/components/ExamplesArea.tsx30
1 files changed, 0 insertions, 30 deletions
diff --git a/docs/components/ExamplesArea.tsx b/docs/components/ExamplesArea.tsx
deleted file mode 100644
index c4c7060..0000000
--- a/docs/components/ExamplesArea.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import { useSSG } from "nextra/ssg";
-import { DetailedFeatureLink } from "./Feature";
-import { GitHubIcon } from "./Icons";
-
-export const ExamplesArea = ({
- filter = "featured",
-}: {
- filter: "featured" | "all";
-}) => {
- const { examples } = useSSG();
-
- return (
- <div className="grid grid-cols-1 mt-12 gap-x-6 gap-y-12 sm:grid-cols-2 lg:mt-16 lg:gap-x-8 lg:gap-y-12">
- {examples
- .filter(({ featured }) => (filter === "featured" ? featured : true))
- .map(({ name, description, slug }) => (
- <DetailedFeatureLink
- key={name}
- feature={{
- Icon: GitHubIcon,
- description,
- name,
- }}
- target="_blank"
- href={`https://github.com/retrofor/HydroRoll/tree/main/examples/${slug}`}
- />
- ))}
- </div>
- );
-};