import { DisplayH2, DisplayH3 } from "./utils"; import NoteCard from "../../ui/molecules/notecards"; import { Specification } from "../../../../libs/types/document"; export function SpecificationSection({ id, title, isH3, specifications, query, }: { id: string; title: string; isH3: boolean; specifications: Specification[]; query: string; }) { return ( <> {title && !isH3 && } {title && isH3 && } {specifications.length > 0 ? ( {specifications.map((spec) => ( ))}
Specification
{spec.title}
{spec.bcdSpecificationURL.includes("#") && ( # {`${spec.bcdSpecificationURL.split("#")[1]}`} )}
) : (

No specification found

No specification data found for {query}.
Check for problems with this page or contribute a missing spec_url to{" "} mdn/browser-compat-data . Also make sure the specification is included in{" "} w3c/browser-specs .

)} ); }