({
thread,
isSubDomainRouting,
settings,
}: {
thread?: SerializedThread;
isSubDomainRouting: boolean;
settings: Settings;
})
| 44 | } |
| 45 | |
| 46 | export function buildStructureData({ |
| 47 | thread, |
| 48 | isSubDomainRouting, |
| 49 | settings, |
| 50 | }: { |
| 51 | thread?: SerializedThread; |
| 52 | isSubDomainRouting: boolean; |
| 53 | settings: Settings; |
| 54 | }) { |
| 55 | if (!thread) return <></>; |
| 56 | |
| 57 | const url = buildUrl(isSubDomainRouting, settings, thread); |
| 58 | const data = buildNameText(thread, url); |
| 59 | |
| 60 | if (!data.name) return <></>; |
| 61 | |
| 62 | return ( |
| 63 | <QAPageJsonLd |
| 64 | keyOverride={thread.incrementId} |
| 65 | mainEntity={{ |
| 66 | ...data, |
| 67 | }} |
| 68 | key={thread.incrementId} |
| 69 | /> |
| 70 | ); |
| 71 | } |
no test coverage detected