Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

653 B
Raw Blame
import { cx, lobeStaticStylish, Markdown } from '@lobehub/ui';
import * as stylex from '@stylexjs/stylex';
import { memo } from 'react';

import { useIsMobile } from '@/hooks/useIsMobile';

import { fallback, styles } from '../style';

const Preview = memo<{ content: string }>(({ content }) => {
  const isMobile = useIsMobile();

  return (
    <div
      style={{ padding: 12 }}
      className={cx(
        lobeStaticStylish.noScrollbar,
        stylex.props(styles.preview).className,
        fallback.preview,
      )}
    >
      <Markdown variant={isMobile ? 'chat' : undefined}>{content}</Markdown>
    </div>
  );
});

export default Preview;