// @ts-nocheck import { css } from '@emotion/css'; import { x } from '@xstyled/emotion'; import { FFormGroup, FInputGroup, FSelect, TotalLinePrimitive, } from '@/components'; import { Button } from '@blueprintjs/core'; import { useIsDarkMode } from '@/hooks/useDarkMode'; const inputGroupCss = css` & .bp4-input { max-width: 110px; padding-left: 8px; } `; const formGroupCss = css` margin-bottom: 0; `; interface DiscountTotalLineProps { currencyCode: string; discountAmount: number; } export function DiscountTotalLine({ currencyCode, discountAmount, }: DiscountTotalLineProps) { const discountButtonInput = ({ text }) => ( ); const discountTypeItems = [ { text: currencyCode, value: 'amount', label: 'Fixed Amount' }, { text: '%', value: 'percentage', label: 'Percentage' }, ]; const isDarkMode = useIsDarkMode(); return ( Discount } fastField className={inputGroupCss} /> {discountAmount} ); }