import React from 'react'; export type SplashPhoneVariant = 'chart' | 'orderbook' | 'watchlist' | 'trade'; interface Props { variant: SplashPhoneVariant; style?: React.CSSProperties; className?: string; } const MiniChart: React.FC = () => ( {[28, 52, 76, 100, 124, 148, 172].map(y => ( ))} {[ { x: 12, h: 90, l: 118, up: true }, { x: 22, h: 82, l: 112, up: true }, { x: 32, h: 95, l: 125, up: false }, { x: 42, h: 78, l: 108, up: true }, { x: 52, h: 70, l: 100, up: true }, { x: 62, h: 88, l: 118, up: false }, { x: 72, h: 65, l: 95, up: true }, { x: 82, h: 58, l: 88, up: true }, { x: 92, h: 72, l: 102, up: true }, { x: 102, h: 48, l: 78, up: true }, ].map((c, i) => ( ))} ); const MiniOrderbook: React.FC = () => ( {Array.from({ length: 8 }, (_, i) => { const y = 24 + i * 20; const askW = 18 + (i % 4) * 8; const bidW = 22 + ((i + 2) % 4) * 6; return ( ); })} ); const MiniWatchlist: React.FC = () => ( {[0, 1, 2, 3, 4, 5].map(i => ( 005930 {i % 2 === 0 ? '+1.2%' : '-0.4%'} ))} ); const MiniTrade: React.FC = () => ( {[ { x: 20, h: 100, l: 118, up: true }, { x: 40, h: 85, l: 105, up: true }, { x: 60, h: 92, l: 112, up: false }, { x: 80, h: 72, l: 95, up: true }, ].map((c, i) => ( ))} ); const SCREENS: Record = { chart: MiniChart, orderbook: MiniOrderbook, watchlist: MiniWatchlist, trade: MiniTrade, }; const SplashPhoneMockup: React.FC = ({ variant, style, className = '' }) => { const Screen = SCREENS[variant]; return (
); }; export default SplashPhoneMockup;