import { forwardRef } from 'react'; import { twMerge } from 'tailwind-merge'; import * as CodeBlock from './CodeBlock'; import type { ElementRef } from 'react'; type SwapCodeBlockProps = CodeBlock.RootProps; export const SwapCodeBlock = forwardRef, SwapCodeBlockProps>(function SwapCodeBlok( { className, ...other }, forwardedRef, ) { const codeString = `curl --location --request GET 'https://api.0x.org/swap/v1/quote?buyToken=DAI&sellToken=ETH&sellAmount=100000&excludedSources=0x,Kyber' --header '0x-api-key: [api-key]'`; return (
CURL REQUEST
{codeString}
); });