chore: text result extensions

This commit is contained in:
Ibrahima G. Coulibaly
2025-03-26 20:50:56 +00:00
parent ab587e60d0
commit ca7f6a6900
7 changed files with 42 additions and 25 deletions

View File

@@ -130,7 +130,13 @@ export default function PrettifyJson({ title }: ToolComponentProps) {
inputComponent={
<ToolTextInput title={'Input JSON'} value={input} onChange={setInput} />
}
resultComponent={<ToolTextResult title={'Pretty JSON'} value={result} />}
resultComponent={
<ToolTextResult
title={'Pretty JSON'}
value={result}
extension={'json'}
/>
}
initialValues={initialValues}
getGroups={({ values, updateField }) => [
{