diff options
| author | 2023-11-03 21:13:33 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:13:33 +0800 | |
| commit | 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (patch) | |
| tree | 51614fe47bff8bb11028a07d4a35c34c9ff6594a /docs/components/ExamplesArea.tsx | |
| parent | 8f135707d069c900e055dae71e69909d6b9a41bb (diff) | |
| download | HydroRoll-9f0d43fe099a95ab1516ae951dcb60a89e76a5a5.tar.gz HydroRoll-9f0d43fe099a95ab1516ae951dcb60a89e76a5a5.zip | |
chore: delete useless codes
Diffstat (limited to 'docs/components/ExamplesArea.tsx')
| -rw-r--r-- | docs/components/ExamplesArea.tsx | 30 |
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> - ); -}; |
