mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
14 lines
366 B
TypeScript
14 lines
366 B
TypeScript
import logger from '../lib/logger';
|
|
import type { AnchorSchemaType } from '../schemas/fields/component/anchor';
|
|
|
|
export async function SanityAnchor({ value }: { value: AnchorSchemaType }) {
|
|
const { anchorId } = value;
|
|
|
|
if (!anchorId) {
|
|
logger.warn('SanityAnchor: Missing anchorId');
|
|
return null;
|
|
}
|
|
|
|
return <div id={anchorId} className='w-0 h-0' />
|
|
}
|