Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

550 B
Raw Blame
import { Badge } from '@invoke-ai/ui-library';
import { MODEL_BASE_TO_COLOR, MODEL_BASE_TO_SHORT_NAME } from 'features/modelManagerV2/models';
import type { BaseModelType } from 'features/nodes/types/common';
import { memo } from 'react';

type Props = {
  base: BaseModelType;
};

const ModelBaseBadge = ({ base }: Props) => {
  return (
    <Badge flexGrow={0} flexShrink={0} colorScheme={MODEL_BASE_TO_COLOR[base]} variant="subtle" h="min-content">
      {MODEL_BASE_TO_SHORT_NAME[base]}
    </Badge>
  );
};

export default memo(ModelBaseBadge);