import { CSSProperties } from 'react' import Bold from './Bold' export default (props: { title1?: any, title2?: any, title3?: any, price1?: any, unbold?: boolean, nobold?: boolean, icon?: any, image?: any, bgtransparent?: boolean, mb?: number, style?: CSSProperties, on?: () => void, onclose?: () => void, special?: any, specialcolor?: string, specialtextcolor?: string, image2?: string, roundicon?: boolean, unit1?: any, righticon?: any, lineHeight?: string | number, }) => { var alt = "icon" if (props.title1) { alt = typeof props.title1 == "string" ? (props.title1.toLowerCase() + "'s icon") : "object's icon" } else if (props.price1) { alt = "price " + props.price1 + "'s icon" } let unbold = props.nobold || props.unbold; let title1 = null let title2 = null let title3 = null if (typeof props.title1 == "string") { title1 =

{unbold ? props.title1 : {props.title1}}

// title1 = {unbold ? props.title1 : {props.title1}} } else { title1 = props.title1 } if (typeof props.title2 == "string") { title2 =

{props.title2}

} else { title2 = props.title2 } if (typeof props.title3 == "string") { title3 =

{props.title3}

} else { title3 = props.title3 } let icon = props.icon || props.image return { props.on?.() }} style={{ marginBottom: props.mb, width: "100%", ...props.style }} > {props.image2 ? : null} {typeof icon == "string" ? {alt} : icon} {props.special ? {props.special} : null} {!props.unit1 && props.title1 ? title1 : null} {props.unit1 != undefined ?

{props.title1 == "0" ? "0.00" : props.title1}  {props.unit1}

: null} {props.unit1 ? {props.title2} : null} {!props.unit1 && props.title2 ? title2 : null} {props.title3 ? title3 : null}
{props.righticon || props.onclose ? {props.righticon} {props.onclose ? { props.onclose?.() }} /> : null} : null}
}