import React from 'react'; // --- StatCard: 대시보드 및 자산 요약용 --- interface StatCardProps { title: string; value: string; change?: string; isUp?: boolean; icon: React.ReactNode; } export const StatCard: React.FC = ({ title, value, change, isUp, icon }) => (

{title}

{value}

{change && (

{change}

)}
{React.cloneElement(icon as React.ReactElement, { size: 18 })}
); // --- FilterChip: 시장/정렬/카테고리 필터용 --- interface FilterChipProps { active: boolean; onClick: () => void; label: string; } export const FilterChip: React.FC = ({ active, onClick, label }) => ( ); // --- TabButton: 대분류 섹션 전환용 --- interface TabButtonProps { active: boolean; onClick: () => void; icon: React.ReactNode; label: string; } export const TabButton: React.FC = ({ active, onClick, icon, label }) => ( ); // --- InputGroup: 설정창 및 폼 입력용 --- interface InputGroupProps { label: string; value: string; onChange: (v: string) => void; placeholder: string; type?: string; icon?: React.ReactNode; } export const InputGroup: React.FC = ({ label, value, onChange, placeholder, type = "text", icon }) => (
onChange(e.target.value)} className="w-full p-4 bg-slate-50 border border-slate-200 rounded-[1.2rem] focus:border-blue-500 focus:bg-white outline-none transition-all font-bold text-slate-800 placeholder:text-slate-300 shadow-sm" placeholder={placeholder} />
); // --- ToggleButton: 활성화/비활성 스위치 --- interface ToggleButtonProps { active: boolean; onClick: () => void; } export const ToggleButton: React.FC = ({ active, onClick }) => ( );