---
import { toHTML } from '../lib/portable-text';

/** flow: long-form text – a small floral sprig sits in the gap between consecutive paragraphs. */
interface Props { value: any[] | undefined | null; class?: string; poetic?: boolean; flow?: boolean }
const { value, class: cls, poetic, flow } = Astro.props;
const html = toHTML(value);
---
{html && <div class:list={['prose', poetic && 'prose--poetic', flow && 'prose--flow', cls]} set:html={html} />}
