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

@@ -150,7 +150,9 @@ export default function CsvToJson({ title }: ToolComponentProps) {
inputComponent={
<ToolTextInput title="Input CSV" value={input} onChange={setInput} />
}
resultComponent={<ToolTextResult title="Output JSON" value={result} />}
resultComponent={
<ToolTextResult title="Output JSON" value={result} extension={'json'} />
}
getGroups={({ values, updateField }) => [
{
title: 'Input CSV Format',

View File

@@ -79,7 +79,9 @@ export default function CsvToXml({ title }: ToolComponentProps) {
inputComponent={
<ToolTextInput title="Input CSV" value={input} onChange={setInput} />
}
resultComponent={<ToolTextResult title="Output XML" value={result} />}
resultComponent={
<ToolTextResult title="Output XML" value={result} extension={'xml'} />
}
getGroups={({ values, updateField }) => [
{
title: 'Input CSV Format',