Skip to content

Commit e448d3a

Browse files
committed
Add preview of splits file
1 parent 2d3bd3d commit e448d3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/converter.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState } from "react";
22

33
import AppFileSelect from "@/components/libresplit/AppFileSelect";
4+
import { AppMarkdownCodeBlock } from "@/components/libresplit/AppMarkdownCodeBlock";
45
import init, { convert } from "@libresplit/libresplit-converter";
56
import wasmUrl from "@libresplit/libresplit-converter/libresplit_converter_bg.wasm?url";
67

@@ -68,6 +69,8 @@ export function Converter() {
6869
Download Splits
6970
</button>
7071
</div>
72+
73+
{result && <AppMarkdownCodeBlock code={result} language="json" />}
7174
</div>
7275
);
7376
}

0 commit comments

Comments
 (0)