import React, { type PropsWithChildren } from 'react'; import Box, { type Props as BoxProps } from './Box.js'; type Props = Omit & { fromLeftEdge?: boolean; }; /** Marks a sub-tree as non-selectable in fullscreen text selection. */ export function NoSelect({ children, fromLeftEdge, ...boxProps }: PropsWithChildren) { const noSelect = fromLeftEdge ? 'from-left-edge' : true; return ( {children} ); }