import clsx from 'clsx' import React from 'react' import { formatMoney } from '../lib/util/format' import { Col } from './layout/col' import { Row } from './layout/row' export function YesNoSelector(props: { selected?: 'YES' | 'NO' onSelect: (selected: 'YES' | 'NO') => void className?: string }) { const { selected, onSelect, className } = props return ( ) } export function YesNoCancelSelector(props: { selected: 'YES' | 'NO' | 'MKT' | 'CANCEL' | undefined onSelect: (selected: 'YES' | 'NO' | 'MKT' | 'CANCEL') => void className?: string btnClassName?: string }) { const { selected, onSelect, className } = props const btnClassName = clsx('px-6 flex-1', props.btnClassName) return ( ) } const fundAmounts = [500, 1000, 2500, 10000] export function FundsSelector(props: { selected: 500 | 1000 | 2500 | 10000 onSelect: (selected: 500 | 1000 | 2500 | 10000) => void className?: string btnClassName?: string }) { const { selected, onSelect, className } = props const btnClassName = clsx('!px-2 whitespace-nowrap', props.btnClassName) return ( {fundAmounts.map((amount) => ( ))} ) } function Button(props: { className?: string onClick?: () => void color: 'green' | 'red' | 'blue' | 'yellow' | 'gray' children?: any }) { const { className, onClick, children, color } = props return ( ) }