mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
15 lines
501 B
TypeScript
15 lines
501 B
TypeScript
import {
|
|
SanityPortableText,
|
|
type SanityPortableTextProps,
|
|
} from '@session/sanity-cms/components/SanityPortableText';
|
|
import { components } from '@/lib/sanity/sanity-components';
|
|
import type { PortableTextBlock } from 'sanity';
|
|
|
|
type PortableTextProps = Omit<SanityPortableTextProps, 'value'> & {
|
|
body: Array<PortableTextBlock>;
|
|
};
|
|
|
|
export default function PortableText({ body, ...props }: PortableTextProps) {
|
|
return <SanityPortableText value={body} components={components} {...props} />;
|
|
}
|