Files
firegex-traffic-viewer/frontend/src/components/RegexView/index.tsx

20 lines
496 B
TypeScript
Raw Normal View History

2022-06-12 12:09:50 +02:00
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;