Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

527 B
Raw Blame
import ts from 'typescript';

import { templateSlotRules } from '../css';
import { templateSlotProperties } from '../properties';
import type { StyleAdapter } from '../types';

const FACTORIES = new Set(['createStaticStyles', 'createStyles']);

export const emotionStaticAdapter: StyleAdapter = {
  markerIdentifiers: [],
  name: 'emotionStatic',
  propertiesOf: templateSlotProperties,
  recognizeFactory: (call) =>
    ts.isIdentifier(call.expression) && FACTORIES.has(call.expression.text),
  rulesOf: templateSlotRules,
};