New component that doesn't require a website, with textarea config field. Added requiresWebsite flag to ComponentDefinition so board components can opt out of the websiteId requirement.
11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
'use client';
|
|
import { Text } from '@umami/react-zen';
|
|
|
|
export function TextBlock({ text }: { text?: string }) {
|
|
if (!text) {
|
|
return null;
|
|
}
|
|
|
|
return <Text style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>{text}</Text>;
|
|
}
|