diff --git a/src/components/result/ResultFooter.tsx b/src/components/result/ResultFooter.tsx index 4de3176..0e96521 100644 --- a/src/components/result/ResultFooter.tsx +++ b/src/components/result/ResultFooter.tsx @@ -7,11 +7,13 @@ import React from 'react'; export default function ResultFooter({ handleDownload, handleCopy, - disabled + disabled, + hideCopy }: { handleDownload: () => void; handleCopy: () => void; disabled?: boolean; + hideCopy?: boolean; }) { return ( @@ -22,13 +24,15 @@ export default function ResultFooter({ > Save as - + {!hideCopy && ( + + )} ); } diff --git a/src/components/result/ToolFileResult.tsx b/src/components/result/ToolFileResult.tsx index 09b17be..b5c18b1 100644 --- a/src/components/result/ToolFileResult.tsx +++ b/src/components/result/ToolFileResult.tsx @@ -173,6 +173,7 @@ export default function ToolFileResult({ disabled={!value} handleCopy={handleCopy} handleDownload={handleDownload} + hideCopy={fileType === 'video' || fileType === 'audio'} /> ); diff --git a/src/tools/index.ts b/src/tools/index.ts index 28a9b03..08a2cf8 100644 --- a/src/tools/index.ts +++ b/src/tools/index.ts @@ -17,9 +17,9 @@ const toolCategoriesOrder: ToolCategory[] = [ 'string', 'json', 'pdf', + 'video', 'list', 'csv', - 'video', 'number', 'png', 'time',