import Swap, { SwapProps } from './components/Swap'
import Widget, { WidgetProps } from './components/Widget'
export { darkTheme, lightTheme } from './theme'
export type { Theme } from './theme/theme'
export { SUPPORTED_LOCALES } from 'constants/locales'

type SwapWidgetProps = SwapProps & WidgetProps

export function SwapWidget(props: SwapWidgetProps) {
  return (
    <Widget {...props}>
      <Swap {...props} />
    </Widget>
  )
}
