import classNames from 'classnames' import { ReactNode } from 'react' import Card from 'components/Card' import { GridGlobe, GridHole, GridLandscape, GridPlanet, GridTire, GridWeb } from 'components/Icons' import Text from 'components/Text' import { Tooltip } from 'components/Tooltip' import useStore from 'store' interface Props { text: string | ReactNode children?: ReactNode bg: 'borrow' | 'lend' | 'farm' | 'portfolio' | 'hls-farm' | 'hls-staking' } function IntroBackground(props: { bg: Props['bg'] }) { switch (props.bg) { case 'borrow': return case 'lend': return case 'farm': return case 'hls-farm': return case 'hls-staking': return default: return } } export default function Intro(props: Props) { const showTutorial = useStore((s) => s.tutorial) const currentAppSection = useStore((s) => s.currentAppSection) if (!showTutorial) return null return (
If you want to hide these info boxes. Set the Tutorial to OFF in the Settings. } />
{props.text}
{props.children &&
{props.children}
}
) }