import type { ReactNode } from 'react'; import clsx from 'clsx'; import { useLaikit } from '../../provider.js'; import Icon from '../Icon/index.js'; import styles from './styles.module.css'; export interface QuoteProps { /** Quoted body text or rich nodes. */ children: ReactNode; /** Person being quoted; rendered after an em-dash. */ author?: string; /** Optional source / event / publication, appended after a middot. */ source?: string; className?: string; } export default function Quote({ children, author, source, className }: QuoteProps) { const { messages } = useLaikit(); const hasAttribution = !!(author || source); return (
); }