mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
extract InitialValuesType to types.ts (PR feedback incorporated)
This commit is contained in:
@@ -8,10 +8,7 @@ import { ToolComponentProps } from '@tools/defineTool';
|
|||||||
import { GetGroupsType } from '@components/options/ToolOptions';
|
import { GetGroupsType } from '@components/options/ToolOptions';
|
||||||
import { Box } from '@mui/material';
|
import { Box } from '@mui/material';
|
||||||
import SimpleRadio from '@components/options/SimpleRadio';
|
import SimpleRadio from '@components/options/SimpleRadio';
|
||||||
|
import { InitialValuesType } from './types';
|
||||||
interface InitialValuesType {
|
|
||||||
mode: 'encode' | 'decode';
|
|
||||||
}
|
|
||||||
|
|
||||||
const initialValues: InitialValuesType = {
|
const initialValues: InitialValuesType = {
|
||||||
mode: 'encode'
|
mode: 'encode'
|
||||||
|
3
src/pages/tools/string/base64/types.ts
Normal file
3
src/pages/tools/string/base64/types.ts
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
export type InitialValuesType = {
|
||||||
|
mode: 'encode' | 'decode';
|
||||||
|
};
|
Reference in New Issue
Block a user