import React from 'react';
/**
* Mini engine marks, the way the reference tools draw them: a 14px glyph
* beside the engine's name, so the row is recognisable before it is read.
*
* These are deliberate simplifications, not the vendors' artwork — at 14px a
* faithful logo is mud, and shipping trademarked assets in a paid plugin is a
* conversation with a lawyer. Colour + silhouette carry the recognition:
* OpenAI's black knot, Google's four-colour G, Gemini's four-point star,
* Microsoft's four squares, Anthropic's coral burst, Perplexity's teal knot.
*/
const S = { display: 'inline-block', flex: 'none', verticalAlign: 'middle' };
const OpenAiMark = ({ size }) => (
);
const GoogleMark = ({ size }) => (
);
const GeminiMark = ({ size }) => (
);
const MicrosoftMark = ({ size }) => (
);
const ClaudeMark = ({ size }) => (
);
const PerplexityMark = ({ size }) => (
);
const CnMark = ({ size }) => (
);
const MARKS = {
chatgpt: OpenAiMark,
overviews: GoogleMark,
gemini: GeminiMark,
perplexity: PerplexityMark,
copilot: MicrosoftMark,
claude: ClaudeMark,
china: CnMark,
};
/** The mark for an engine id, or null — never a wrong logo. */
export function EngineMark({ id, size = 14 }) {
const Mark = MARKS[id] || (String(id).startsWith('google') ? GoogleMark : null);
return Mark ? : null;
}