openreplay/frontend/app/components/Session_/Inspector/TextView.tsx
Андрей Бабушкин b822b1c067 applied eslint
2025-02-26 20:31:01 +01:00

16 lines
311 B
TypeScript

import React from 'react';
import InlineInput from './InlineInput';
interface Props {
text: Text;
}
export default function TextView({ text }: Props) {
const commit = (value) => { text.nodeValue = value; };
return (
<InlineInput
value={text.nodeValue || ''}
commit={commit}
/>
);
}