mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
16 lines
408 B
TypeScript
16 lines
408 B
TypeScript
import * as React from 'react';
|
|
import { RegExpDiagram } from '../components/Diagram';
|
|
|
|
export const RegexpDiagramView: React.FC = () => {
|
|
// @ts-ignore
|
|
const regexpGroups = window.regexpGroups;
|
|
console.log(regexpGroups);
|
|
return (
|
|
<>
|
|
<div>
|
|
{regexpGroups.map((regexp: string) => <RegExpDiagram className="regexp-diagram" regexp={new RegExp(regexp)} />)}
|
|
</div>
|
|
</>
|
|
);
|
|
};
|