import React from "react"; import { Flex, Box, Input, IconButton, Label, Checkbox } from "theme-ui"; import ExpandMoreIcon from "../../icons/ExpandMoreIcon"; import { isEmpty } from "../../helpers/shared"; import Select from "../Select"; const categorySettings = [ { value: "character", label: "Character" }, { value: "prop", label: "Prop" }, { value: "vehicle", label: "Vehicle / Mount" }, ]; function TokenSettings({ token, onSettingsChange, showMore, onShowMoreChange, }) { const tokenEmpty = !token || isEmpty(token); return ( onSettingsChange("defaultSize", parseInt(e.target.value)) } disabled={tokenEmpty || token.type === "default"} min={1} my={1} /> {showMore && ( <> onSettingsChange("name", e.target.value)} disabled={tokenEmpty || token.type === "default"} my={1} />