import React from 'react'; import type { TreeData, MapTheme } from '../../types/mapTypes'; interface RealisticTreeProps { tree: TreeData; theme: MapTheme; } export const RealisticTree: React.FC = ({ tree, theme }) => { const { x, y, scale = 1, type = 'pine' } = tree; const isDark = theme.id !== 'parchment'; const pencil = theme.pencilColor; const shade = theme.pencilShade; const pineFill = isDark ? '#1e281c' : '#d8d4bf'; const oakFill = isDark ? '#242a1e' : '#ded6bf'; const trunkFill = isDark ? '#2e251d' : '#cca98a'; const willowFill = isDark ? '#1f2920' : '#d5dcc2'; const birchFoliageFill = isDark ? '#293222' : '#e2dbcb'; const renderTreeContent = () => { switch (type) { case 'pine': case 'spruce': { const width = type === 'spruce' ? 14 : 17; const h = type === 'spruce' ? 32 : 28; return ( {/* Bottom Tier */} {/* Middle Tier */} {/* Upper Tier */} {/* Top Spire */} ); } case 'ancient_oak': case 'oak': { const isAncient = type === 'ancient_oak'; const rw = isAncient ? 22 : 18; const rh = isAncient ? 24 : 20; return ( {/* Trunk */} {/* Canopy */} ); } case 'willow': { const w = 18; return ( ); } case 'birch': case 'cypress': default: { const w = 12; const h = 26; return ( ); } } }; return {renderTreeContent()}; };