import { useState } from "react"; import classNames from "classnames"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faSearch, faArrowsUpDownLeftRight, faPalette, faShapes, faIcons, } from "@fortawesome/free-solid-svg-icons"; import { FormattedMessage } from "react-intl"; const TABS_ELEMENTS = [ { icon: faSearch, name: "iconsEditor.editor.tabs.listIcons", }, { icon: faShapes, name: "iconsEditor.editor.tabs.shape", }, { icon: faIcons, name: "iconsEditor.editor.tabs.icons", }, ]; export const EditorTabs = ({ current, onChange, }: { current: number; onChange: (e: number) => void; }) => { return ( // p-2 lg:p-4