import Link from 'next/link' import CogIcon from 'shared/components/icons/cog.js' import ControlIcon from 'shared/components/icons/control.js' import NewsletterIcon from 'shared/components/icons/newsletter.js' import UnitsIcon from 'shared/components/icons/units.js' import CompareIcon from 'shared/components/icons/compare.js' import LabelIcon from 'shared/components/icons/label.js' import BioIcon from 'shared/components/icons/bio.js' import UserIcon from 'shared/components/icons/user.js' const btnClasses = { dflt: 'btn w-full mt-2 btn-secondary ' + 'flex flex-row flex-nowrap items-center gap-4 py-4 h-auto ' + 'border border-secondary justify-start text-left bg-opacity-30', active: 'btn-ghost bg-secondary hover:bg-secondary ' + 'hover:bg-opacity-30 hover:border-secondary', inactive: 'hover:bg-opacity-20 hover:bg-secondary btn-ghost ' + 'border border-secondary hover:border hover:border-secondary', } const spanClasses = 'p-4 w-8 h-8 shrink-0 rounded-full text-center p-0 py-2 bg-secondary text-secondary-content' export const Choice = ({ val, update, t, current, children, bool = false }) => { const active = val === current return ( ) } export const DoneIcon = ({ href }) => ( ) export const TodoIcon = ({ href }) => ( ) const TopicIcon = (props) => { const Icon = props.href === '' || props.href === 'control' ? ControlIcon : icons[props.href] ? icons[props.href] : CogIcon return } const DoingIcon = ({ href }) => export const Icons = ({ done = [], todo = [], current = '' }) => (
{done.map((href) => ( ))} {todo.map((href) => ( ))}
) const icons = { newsletter: NewsletterIcon, units: UnitsIcon, compare: CompareIcon, username: LabelIcon, bio: BioIcon, img: UserIcon, } export const welcomeSteps = { 1: [''], 2: ['', 'newsletter', 'units'], 3: ['', 'newsletter', 'units', 'compare', 'username'], 4: ['', 'newsletter', 'units', 'compare', 'username', 'bio', 'img'], 5: [''], }