import { PNG_LogoCircle_2x } from '@past3lle/assets' import { BV, Button, ColumnCenter, CookieBanner, Text as LayoutText, Modal, Pastellecon, PstlButton, // PstlButton Row } from '@past3lle/components' import { useOnClickOutside } from '@past3lle/hooks' import { SkillForgeBoardConnectedProps, SkillForgeConnected, SkillForgeHeader } from '@past3lle/skillforge-widget' import { urlToSimpleGenericImageSrcSet } from '@past3lle/theme' import * as React from 'react' import styled, { useTheme } from 'styled-components' import { /* PstlFooter, */ PstlHeader, PstlMain, PstlNav } from '../components/Layout' import { skilltreeThemeCustom } from '../theme/skilltreeTheme' const SKILLTREE_CONFIG: SkillForgeBoardConnectedProps['config'] = { appName: 'Pastelle SkillForge', appTheme: skilltreeThemeCustom, provider: { projectId: process.env.REACT_APP_WALLETCONNECT_KEY || 'STRING' } } const WrappedButton = styled(Button)` background: purple; ` interface Props { showBasic?: boolean } const App = ({ showBasic = false }: Props) => { const ref = React.useRef() const [modalOpen, setModalOpen] = React.useState(false) useOnClickOutside(ref, () => setModalOpen(false)) const outerAppTheme = useTheme() return ( <> MODAL OPEN Click anywhere outside modal to close Click button for modal! setModalOpen(true)} margin="2rem"> See modal // SECONDARY setModalOpen(true)} margin="2rem"> BUTTON PRIMARY setModalOpen(true)} margin="2rem"> BUTTON DANGER setModalOpen(true)} margin="2rem"> BUTTON WARNING setModalOpen(true)} margin="2rem"> BUTTON WARNING setModalOpen(true)} margin="2rem" fontSize={'1.7rem'} borderRadius={'10rem'}> WRAPPED BUTTON {/* CURRENT THEME: {mode} */} {showBasic && ( EXAMPLE APP Click button for modal! setModalOpen(true)}> See modal )} {/* */}

WE REALLY ONLY HAVE OPT-IN ANALYTICS COOKIES FOR 3 REASONS:

1. See which of our items are most popular

2. Assess which parts of our site aren't working well and/or where you guys are getting stuck

3. Get a sense for if you guys like the showcase video option and other new features

} onAcceptAnalytics={() => console.warn('ANALYTICS COOKIES')} onSaveAndClose={() => console.warn('SAVING SETTINGS AND CLOSING')} /> ) } export { App }