feat: minor improvements and refactoring in Text Replacer Tool

- Changed the replaceText method to take all options as arguments.
- Removed compute from SimpleRadio component.
- Moved InitialValuesType type and initialValues object to a separate file to avoid Fast Refresh error.
- Used ToolContent and added usage examples.
This commit is contained in:
EugSh
2025-03-06 10:34:44 +03:00
parent 6278ddf8f9
commit 52ccfec60f
6 changed files with 392 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import { defineTool } from '@tools/defineTool';
import { lazy } from 'react';
export const tool = defineTool('string', {
name: 'Text Replacer',
path: 'replacer',
shortDescription: 'Quickly replace text in your content',
icon: 'material-symbols-light:find-replace',
description:
'Easily replace specific text in your content with this simple, browser-based tool. Just input your text, set the text you want to replace and the replacement value, and instantly get the updated version.',
keywords: ['text', 'replace'],
component: lazy(() => import('./index'))
});