import { ElementType, Icon, IconProps, Tooltip } from "@hope-ui/solid" import { IconTypes } from "solid-icons" import { useT } from "~/hooks" import { getMainColor, me } from "~/store" import { UserMethods, UserPermissions } from "~/types" import { hoverColor } from "~/utils" import { operations } from "./operations" export const CenterIcon = ( props: IconProps & { name: string }, ) => { const index = UserPermissions.findIndex((p) => p === props.name) if (index !== -1 && !UserMethods.can(me(), index)) return null const t = useT() return ( ) } export const RightIcon = ( props: IconProps & { tips?: string icon?: IconTypes }, ) => { const t = useT() return ( ) } // export const ToolIcon = ( // props: IconButtonProps // ) => ;