// Theirs import React from 'react' import dynamic from 'next/dynamic' // Ours import Button from '../components/Button' import Page from '../components/Page' import MenuButton from '../components/MenuButton' import { useAuth } from '../components/AuthContext' import { loginGitHub, logout } from '../lib/client' import { COLORS } from '../lib/constants' const Billing = dynamic(() => import('../components/Billing'), { loading: () =>
, }) function logoutThunk() { return logout } const soon = function Plan({ selectBilling }) { const user = useAuth() function handleSelectFree() { if (!user) { loginGitHub() } } function handleSelectUpgrade() { if (!user) { return loginGitHub() } selectBilling() } return (

Free

Diamond

PNG/SVG Exports
Full visual editor
Custom backgrounds
GitHub Gist support
Saved snippets 1000
Embed saved snippets
API Access {soon}
Saved custom themes/presets {soon}
Twitter card unfurls {soon}
FREE FOREVER $5.00 / month
) } function Settings() { const [selected, select] = React.useState('Plan') const user = useAuth() function selectMenu(name) { return () => select(name) } return (
{/* */} {user && }
{selected === 'Plan' && } {selected === 'Billing' && }
{user && {user.displayName}}
) } function SettingsPage() { return ( ) } export default SettingsPage