import React from 'react'; import Svg, { Path, Circle } from 'react-native-svg'; export type BrushType = 'stroke' | 'dot' | 'none'; export interface BrushPreviewProps { /** * Color of the brush strokes */ color: string; /** * Thickness of the brush strokes */ thickness: number; /** * Opacity of the brush strokes */ opacity: number; /** * Brush preview preset, for different kinds of previews * @default DEFAULT_BRUSH_PREVIEW */ brushPreview?: BrushType; } /** * Displays a preview of the current brush with its color, size, and * opacity. The preview can either be a stroke or a dot. */ const BrushPreview: React.FC = ({ color, thickness, opacity, brushPreview, }) => brushPreview !== 'none' ? ( {brushPreview === 'stroke' ? ( ) : ( )} ) : null; export default BrushPreview;