json-joy
Version:
Collection of libraries for building collaborative editing apps.
10 lines (9 loc) • 495 B
JavaScript
// biome-ignore lint: lint/style/useImportType
import * as React from 'react';
import { CaretFrame } from '../util/CaretFrame';
import { CaretTopOverlay } from './CaretTopOverlay';
import { CaretBottomOverlay } from './CaretBottomOverlay';
export const RenderCaret = (props) => {
const { children } = props;
return (React.createElement(CaretFrame, { over: React.createElement(CaretTopOverlay, { ...props }), under: React.createElement(CaretBottomOverlay, { ...props }) }, children));
};