import { Intent, TradingButton } from '@vegaprotocol/ui-toolkit'; import classNames from 'classnames'; import type { ComponentProps, ButtonHTMLAttributes } from 'react'; import { forwardRef } from 'react'; import { NavLink } from 'react-router-dom'; type RainbowButtonProps = { variant?: 'full' | 'border'; }; export const RainbowButton = ({ variant = 'full', children, className, ...props }: RainbowButtonProps & ButtonHTMLAttributes) => ( ); const RAINBOW_TAB_STYLE = classNames( 'inline-block', 'bg-vega-clight-500 dark:bg-vega-cdark-500', 'hover:bg-vega-clight-400 dark:hover:bg-vega-cdark-400', 'data-[state="active"]:text-white data-[state="active"]:bg-rainbow', 'data-[state="active"]:hover:bg-none data-[state="active"]:hover:bg-vega-pink-500 dark:data-[state="active"]:hover:bg-vega-pink-500', '[&.active]:text-white [&.active]:bg-rainbow', '[&.active]:hover:bg-none [&.active]:hover:bg-vega-pink-500 dark:[&.active]:hover:bg-vega-pink-500', 'px-5 py-3', 'first:rounded-tl-lg last:rounded-tr-lg' ); const DISABLED_RAINBOW_TAB_STYLE = classNames( 'pointer-events-none', 'text-vega-clight-100 dark:text-vega-cdark-100', 'data-[state="active"]:text-white', '[&.active]:text-white' ); const TAB_STYLE = classNames( 'inline-block', 'bg-transparent', 'text-vega-clight-200 dark:text-vega-cdark-200', 'hover:text-vega-clight-100 dark:hover:text-vega-cdark-100', 'data-[state="active"]:text-black dark:data-[state="active"]:text-white', 'data-[state="active"]:border-b-2 data-[state="active"]:border-b-black dark:data-[state="active"]:border-b-white', '[&.active]:text-black dark:[&.active]:text-white', '[&.active]:border-b-2 [&.active]:border-b-black dark:[&.active]:border-b-white', 'mx-4 px-0 py-3', 'uppercase' ); const DISABLED_TAB_STYLE = classNames('pointer-events-none'); export const RainbowTabButton = forwardRef< HTMLButtonElement, { disabled?: boolean } & ButtonHTMLAttributes >(({ children, className, disabled = false, ...props }, ref) => ( )); RainbowTabButton.displayName = 'RainbowTabButton'; export const RainbowTabLink = ({ to, children, className, disabled = false, ...props }: { disabled?: boolean } & ComponentProps) => ( {children} ); export const TabLink = ({ to, children, className, disabled = false, ...props }: { disabled?: boolean } & ComponentProps) => ( {children} ); export const Button = forwardRef< HTMLButtonElement, ComponentProps >(({ children, intent, type, ...props }, ref) => { return ( {children} ); }); Button.displayName = 'TradingButton';