import { Col, Row } from "antd"; import { ContentLayout } from "../../Components/ContentLayout"; import { IOView } from "../../types"; import { ProgressButton } from "../../Components/ProgressButton"; import { TopCreators } from "../../Components/Creators"; import { useActions, useAppState } from "../../overmind"; import { useState } from "react"; type Props = {}; const UserSelector: IOView = (props: Props) => { const state = useAppState(); const actions = useActions(); const [addedUsers, setAddedUsers] = useState([]); const allowNext = addedUsers.length >= 8 ? true : false; const username = state.flows.user.create.form.username; const users = state.lists.top.users.items; const selectedUsers = users.filter((user) => addedUsers.includes(user.username || "")); return (

{username || "username.io"}

Select 8 or more people you like

await actions.api.user.powerUpMultiple({ users: selectedUsers, }) } > Next
); }; export default UserSelector;