diff --git a/apps/desktop-ui/src/components/beautify-minify/beautify-minify-layout.tsx b/apps/desktop-ui/src/components/beautify-minify/beautify-minify-layout.tsx index 74b344a9..e04ffe43 100644 --- a/apps/desktop-ui/src/components/beautify-minify/beautify-minify-layout.tsx +++ b/apps/desktop-ui/src/components/beautify-minify/beautify-minify-layout.tsx @@ -4,7 +4,6 @@ import React, { useMemo, useState } from 'react' import { useCopyToClipboard } from '@/hooks/use-copy-to-clipboard' import { useTranslations } from 'next-intl' import { Button } from '@/components/ui/button' -import { Card } from '@/components/ui/card' import { Label } from '@/components/ui/label' import { Select, @@ -14,11 +13,10 @@ import { SelectValue, } from '@/components/ui/select' import { ToggleGroup, ToggleGroupItem } from '@/components/ui/toggle-group' -import { Check, Copy, FileText, Trash2 } from 'lucide-react' +import { Check, Copy, Trash2 } from 'lucide-react' import { IconWand } from '@tabler/icons-react' -import { ToolPageHeader } from '@/components/tools/tool-page-header' -import { RevealItem } from '@/components/dashboard/dashboard-reveal' -import { CATEGORY_ACCENT } from '@/components/dashboard/types' +import { ToolShell } from '@/components/tools/tool-shell' +import { ToolPanels, IOPanel, ToolTextArea } from '@/components/tools/io-panel' import { BEAUTIFY_LANGS, beautify, minify, type BeautifyLang } from '@/lib/beautify-minify' type Action = 'beautify' | 'minify' @@ -41,105 +39,118 @@ export function BeautifyMinifyLayout() { ) const inBytes = useMemo(() => (input ? new TextEncoder().encode(input).length : 0), [input]) - return ( -
-
- - - - - - -
- - -
-
- - v && setAction(v as Action)} - className="justify-start" - > - {t('beautify')} - {t('minify')} - -
-
+ const toolbar = ( +
+
+ + +
+
+ + v && setAction(v as Action)} + className="justify-start" + > + + {t('beautify')} + + + {t('minify')} + + +
+
+ ) -
- -
-
- - -
-
- {t('bytes', { count: inBytes.toLocaleString() })} - -
-
-
-