diff --git a/package.json b/package.json index 7699bc4..5e769bf 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "astro": "^4.10.2", "react": "^18.3.1", "react-dom": "^18.3.1", + "react-icons": "^5.2.1", "sharp": "^0.32.6", "shiki": "^1.7.0", "starlight-links-validator": "^0.7.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2444896..5af981c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,6 +47,9 @@ dependencies: react-dom: specifier: ^18.3.1 version: 18.3.1(react@18.3.1) + react-icons: + specifier: ^5.2.1 + version: 5.2.1(react@18.3.1) sharp: specifier: ^0.32.6 version: 0.32.6 @@ -4572,6 +4575,14 @@ packages: scheduler: 0.23.2 dev: false + /react-icons@5.2.1(react@18.3.1): + resolution: {integrity: sha512-zdbW5GstTzXaVKvGSyTaBalt7HSfuK5ovrzlpyiWHAFXndXTdd/1hdDHI4xBM1Mn7YriT6aqESucFl9kEXzrdw==} + peerDependencies: + react: '*' + dependencies: + react: 18.3.1 + dev: false + /react-is@16.13.1: resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} dev: false diff --git a/src/components/Playground.tsx b/src/components/Playground.tsx index 49d31bd..cc2a32c 100644 --- a/src/components/Playground.tsx +++ b/src/components/Playground.tsx @@ -36,9 +36,9 @@ export default function Playground() { "test.mcfunction": { content: "", language: "mcfunction", - } - } - } + }, + }, + }, }, files: { "pack.toml": { diff --git a/src/components/playground/FileView.tsx b/src/components/playground/FileView.tsx index 0828b8b..1a36556 100644 --- a/src/components/playground/FileView.tsx +++ b/src/components/playground/FileView.tsx @@ -1,5 +1,9 @@ import type { Directory, SetState } from "@components/Playground"; import React, { useState } from "react"; +import { + GoChevronDown as ChevDown, + GoChevronRight as ChevRight, +} from "react-icons/go"; export default function FileView({ root, @@ -14,28 +18,31 @@ export default function FileView({ }) { return (