jbilcke-hf HF staff commited on
Commit
df009e4
1 Parent(s): 3041173

let's remove imports

Browse files
src/components/core/providers/ComputeProviderLogo.tsx CHANGED
@@ -1,4 +1,3 @@
1
- import Image from 'next/image'
2
  import { cn } from '@aitube/timeline'
3
 
4
  import { ComputeProvider } from '@aitube/clapper-services'
@@ -15,13 +14,13 @@ export function ComputeProviderLogo({
15
  height?: number | string
16
  className?: string
17
  }) {
18
- const staticImageData =
19
  computeProvidersLogos[provider || ComputeProvider.NONE] ||
20
  computeProvidersLogos.NONE
21
 
22
  return (
23
  <img
24
- src={staticImageData.src}
25
  height={height as any}
26
  alt={formatProvider(provider)}
27
  className={cn(className)}
 
 
1
  import { cn } from '@aitube/timeline'
2
 
3
  import { ComputeProvider } from '@aitube/clapper-services'
 
14
  height?: number | string
15
  className?: string
16
  }) {
17
+ const src =
18
  computeProvidersLogos[provider || ComputeProvider.NONE] ||
19
  computeProvidersLogos.NONE
20
 
21
  return (
22
  <img
23
+ src={src}
24
  height={height as any}
25
  alt={formatProvider(provider)}
26
  className={cn(className)}
src/components/core/providers/logos.ts CHANGED
@@ -1,33 +1,31 @@
1
- import { StaticImageData } from 'next/image'
2
-
3
  import { ComputeProvider } from '@aitube/clapper-services'
4
 
5
- import none from '../../../../public/images/providers/none.png'
6
- import anthropic from '../../../../public/images/providers/anthropic.png'
7
- import cohere from '../../../../public/images/providers/cohere.png'
8
- import elevenlabs from '../../../../public/images/providers/elevenlabs.png'
9
- import everartai from '../../../../public/images/providers/everartai.png'
10
- import falai from '../../../../public/images/providers/falai.png'
11
- import fireworks from '../../../../public/images/providers/fireworks.png'
12
- import google from '../../../../public/images/providers/google.png'
13
- import groq from '../../../../public/images/providers/groq.png'
14
- import hedra from '../../../../public/images/providers/hedra.png'
15
- import huggingface from '../../../../public/images/providers/huggingface.png'
16
- import kitsai from '../../../../public/images/providers/kitsai.png'
17
- import kuaishou from '../../../../public/images/providers/kuaishou.png'
18
- import leonardoai from '../../../../public/images/providers/leonardoai.png'
19
- import lumalabs from '../../../../public/images/providers/lumalabs.png'
20
- import midjourney from '../../../../public/images/providers/midjourney.png'
21
- import mistralai from '../../../../public/images/providers/mistralai.png'
22
- import modelslab from '../../../../public/images/providers/modelslab.jpeg'
23
- import openai from '../../../../public/images/providers/openai.png'
24
- import replicate from '../../../../public/images/providers/replicate.jpeg'
25
- import runwayml from '../../../../public/images/providers/runwayml.png'
26
- import stabilityai from '../../../../public/images/providers/stabilityai.png'
27
- import suno from '../../../../public/images/providers/suno.png'
28
- import udio from '../../../../public/images/providers/udio.png'
29
 
30
- export const computeProvidersLogos: Record<ComputeProvider, StaticImageData> = {
31
  [ComputeProvider.NONE]: none,
32
  [ComputeProvider.ANTHROPIC]: anthropic,
33
  [ComputeProvider.COHERE]: cohere,
 
 
 
1
  import { ComputeProvider } from '@aitube/clapper-services'
2
 
3
+ const none = '/images/providers/none.png'
4
+ const anthropic = '/images/providers/anthropic.png'
5
+ const cohere = '/images/providers/cohere.png'
6
+ const elevenlabs = '/images/providers/elevenlabs.png'
7
+ const everartai = '/images/providers/everartai.png'
8
+ const falai = '/images/providers/falai.png'
9
+ const fireworks = '/images/providers/fireworks.png'
10
+ const google = '/images/providers/google.png'
11
+ const groq = '/images/providers/groq.png'
12
+ const hedra = '/images/providers/hedra.png'
13
+ const huggingface = '/images/providers/huggingface.png'
14
+ const kitsai = '/images/providers/kitsai.png'
15
+ const kuaishou = '/images/providers/kuaishou.png'
16
+ const leonardoai = '/images/providers/leonardoai.png'
17
+ const lumalabs = '/images/providers/lumalabs.png'
18
+ const midjourney = '/images/providers/midjourney.png'
19
+ const mistralai = '/images/providers/mistralai.png'
20
+ const modelslab = '/images/providers/modelslab.jpeg'
21
+ const openai = '/images/providers/openai.png'
22
+ const replicate = '/images/providers/replicate.jpeg'
23
+ const runwayml = '/images/providers/runwayml.png'
24
+ const stabilityai = '/images/providers/stabilityai.png'
25
+ const suno = '/images/providers/suno.png'
26
+ const udio = '/images/providers/udio.png'
27
 
28
+ export const computeProvidersLogos: Record<ComputeProvider, string> = {
29
  [ComputeProvider.NONE]: none,
30
  [ComputeProvider.ANTHROPIC]: anthropic,
31
  [ComputeProvider.COHERE]: cohere,