🎥 Make videos programmatically with React
feat: refactor EditorIcon component to improve SVG structure and props handling
Shankhadeep Dey19eb1a95815f
diff --git a/packages/docs/src/components/icons/editor.tsx b/packages/docs/src/components/icons/editor.tsxindex 854528f677..f872fbd270 100644--- a/packages/docs/src/components/icons/editor.tsx+++ b/packages/docs/src/components/icons/editor.tsx@@ -1,58 +1,47 @@+import type {SVGProps} from 'react';import React from 'react';-export const EditorIcon: React.FC<{- readonly style?: React.CSSProperties;-}> = ({style}) => {+export const EditorIcon: React.FC<SVGProps<SVGSVGElement>> = (props) => {return (- <svg style={style} viewBox="0 0 24 24" fill="currentColor">- <rect- x="2"- y="3"- width="20"- height="18"- rx="2"- ry="2"- fill="none"- stroke="currentColor"- strokeWidth="2"- />+ <svg+ viewBox="0 0 64 64"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <rect width="64" height="64" rx="12" fill="currentColor" />+<rectx="4"- y="5"- width="16"- height="3"+ y="4"+ width="56"+ height="42"+ rx="6"fill="currentColor"- opacity="0.3"- />- <rect- x="4"- y="9"- width="6"- height="8"- fill="none"stroke="currentColor"- strokeWidth="1.5"- />- <rect- x="11"- y="9"- width="9"- height="4"- fill="currentColor"- opacity="0.6"+ strokeWidth="1"+ opacity="0.8"/>- <rect- x="11"- y="14"- width="9"- height="3"- fill="currentColor"- opacity="0.4"- />- <circle cx="6" cy="6.5" r="0.5" fill="currentColor" />- <circle cx="7.5" cy="6.5" r="0.5" fill="currentColor" />- <circle cx="9" cy="6.5" r="0.5" fill="currentColor" />- <path d="M5 11h4M5 13h3M5 15h4" stroke="currentColor" strokeWidth="0.5" />++ <rect x="8" y="8" width="48" height="30" rx="4" fill="currentColor" opacity="0.9" />++ <polygon points="28,20 28,28 36,24" fill="currentColor" opacity="0.3" />++ <rect x="4" y="48" width="56" height="12" rx="4" fill="currentColor" opacity="0.7" />++ <rect x="6" y="50" width="52" height="2" rx="1" fill="currentColor" opacity="0.5" />+ <rect x="6" y="54" width="52" height="2" rx="1" fill="currentColor" opacity="0.5" />+ <rect x="6" y="58" width="52" height="2" rx="1" fill="currentColor" opacity="0.5" />++ <rect x="8" y="49" width="12" height="4" rx="1" fill="currentColor" opacity="0.6" />+ <rect x="22" y="49" width="8" height="4" rx="1" fill="currentColor" opacity="0.6" />+ <rect x="32" y="49" width="16" height="4" rx="1" fill="currentColor" opacity="0.6" />++ <rect x="8" y="53" width="20" height="4" rx="1" fill="currentColor" opacity="0.4" />+ <rect x="30" y="53" width="18" height="4" rx="1" fill="currentColor" opacity="0.4" />++ <rect x="25" y="48" width="2" height="12" fill="currentColor" opacity="0.3" />+ <polygon points="25,47 27,47 26,45" fill="currentColor" opacity="0.3" /></svg>);};