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.

745 B
Raw Blame
import { Flex, Text } from '@invoke-ai/ui-library';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { useListCustomNodePacksQuery } from 'services/api/endpoints/customNodes';

export const ScanNodesForm = memo(() => {
  const { t } = useTranslation();
  const { data } = useListCustomNodePacksQuery();

  return (
    <Flex flexDir="column" gap={4} pt={4}>
      <Text fontSize="sm" color="base.500">
        {t('customNodes.scanFolderDescription')}
      </Text>
      {data?.custom_nodes_path && (
        <Text fontSize="xs" color="base.600">
          {t('customNodes.nodesDirectory')}: {data.custom_nodes_path}
        </Text>
      )}
    </Flex>
  );
});

ScanNodesForm.displayName = 'ScanNodesForm';