import { CSSProperties } from 'react' import Bold from './Bold' export default (props:{title?:any, raw1?:boolean, title1?:any, title2?:any, price1?:number, raw?:boolean, icon?:any, image?:any, nohover?:boolean, on?:()=>void, percent?:number, roundicon?:boolean, style?:CSSProperties, percentColor?:string, nobold?:boolean,unbold?:boolean, f1?:string, f2?:string, righticon?:any, onclose?:()=>void, }) => { var alt = "icon" if (props.title && !props.raw1) { alt = props.title1?.toLowerCase() + "'s icon" } else if (props.price1 && !props.raw) { alt = "price " + props.price1 + "'s icon" } else { alt = "icon2title's icon" } let image = props.icon || props.image; let unbold = props.nobold || props.unbold; return props.on?.()}> {props.percent ?
: null} {typeof image == "string" ? {props.title1 : image} {props.raw ? {props.title1 ? props.title1 : null} {props.title2 ? props.title2 : null} : (unbold ? {typeof props.title1 == "string" ? {props.title1} : props.title1} {typeof props.title2 == "string" ? {props.title2} : props.title2} : {typeof props.title1 == "string" ? {props.title1} : props.title1} {typeof props.title2 == "string" ? {props.title2} : props.title2} )} {props.righticon || props.onclose ? {props.righticon} {props.onclose ? {alt} { props.onclose?.() }} /> : null} : null}
}