import { Fragment } from 'react' import Image from 'next/image' import clsx from 'clsx' import Highlight, { defaultProps } from 'prism-react-renderer' import { ButtonLink } from '@/components/Button' import { HeroBackground } from '@/components/HeroBackground' import blurCyanImage from '@/images/blur-cyan.png' import blurIndigoImage from '@/images/blur-indigo.png' const codeLanguage = 'rust' const code = `#[account(mut)] pub payer: Signer<'info>, pub publisher: Signer<'info>, pub rent: Sysvar<'info, Rent>, pub system_program: Program<'info, System>, pub token_program: Program<'info, Token>,` const tabs = [ { name: 'lib.rs', isActive: true }, { name: 'Anchor.toml', isActive: false }, ] export function Hero() { return (

Anchor

Solana's most popular smart contract framework.

Get started View on GitHub
{tabs.map((tab) => (
{tab.name}
))}
{({ className, style, tokens, getLineProps, getTokenProps, }) => (
                          
                            {tokens.map((line, index) => (
                              
{line.map((token, index) => ( ))}
))}
)}
) }