import React from "react"; import { StylesConfig } from "react-select"; export interface ActionOption { value: string; label: React.ReactElement; } export const CVMatchLabel = (
Match on ComicVine
); export const editLabel = (
Edit Metadata
); export const deleteLabel = (
Delete Comic
); export const actionOptions: ActionOption[] = [ { value: "match-on-comic-vine", label: CVMatchLabel }, { value: "edit-metdata", label: editLabel }, { value: "delete-comic", label: deleteLabel }, ]; export const customStyles: StylesConfig = { menu: (base: any) => ({ ...base, backgroundColor: "rgb(156, 163, 175)", }), placeholder: (base: any) => ({ ...base, color: "black", }), option: (base: any, { isFocused }: any) => ({ ...base, backgroundColor: isFocused ? "gray" : "rgb(156, 163, 175)", }), singleValue: (base: any) => ({ ...base, paddingTop: "0.4rem", }), control: (base: any) => ({ ...base, backgroundColor: "rgb(156, 163, 175)", color: "black", border: "1px solid rgb(156, 163, 175)", }), };