React Interface v1

This commit is contained in:
DomySh
2022-06-12 12:09:50 +02:00
parent af63ab176f
commit e62e655fdc
20 changed files with 547 additions and 110 deletions

View File

@@ -0,0 +1,19 @@
import { TextInput } from '@mantine/core';
import React from 'react';
import { RegexFilter } from '../../js/models';
import { getHumanReadableRegex } from '../../js/utils';
import style from "./RegexView.module.scss";
function RegexView({ regexInfo }:{ regexInfo:RegexFilter }) {
return <div className={style.box}>
<TextInput
disabled
value={getHumanReadableRegex(regexInfo.regex)}
/>
</div>
}
export default RegexView;