import { ReactNode } from 'react' import Card from 'components/Card' import Text from 'components/Text' import { Tooltip } from 'components/Tooltip' import { DEFAULT_SETTINGS } from 'constants/defaultSettings' import { TUTORIAL_KEY } from 'constants/localStore' import useLocalStorage from 'hooks/useLocalStorage' interface Props { text: string | ReactNode children?: ReactNode } export default function Intro(props: Props) { const [tutorial] = useLocalStorage(TUTORIAL_KEY, DEFAULT_SETTINGS.tutorial) if (!tutorial) 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}
}
) }