Hiyve Components - v1.0.0
    Preparing search index...

    Interface FileCommentsPanelRenderProps

    Render prop overrides for advanced customization.

    interface FileCommentsPanelRenderProps {
        formatTimestamp?: (timestamp: string | Date) => string;
        renderComment?: (
            comment: FileComment,
            isOwn: boolean,
            defaultContent: ReactNode,
        ) => ReactNode;
        renderEmptyState?: () => ReactNode;
        renderHeader?: (title: string, defaultContent: ReactNode) => ReactNode;
    }
    Index

    Properties

    formatTimestamp?: (timestamp: string | Date) => string

    Custom timestamp formatter

    renderComment?: (
        comment: FileComment,
        isOwn: boolean,
        defaultContent: ReactNode,
    ) => ReactNode

    Custom comment renderer. Return the rendered comment or use defaultContent.

    renderEmptyState?: () => ReactNode

    Custom empty state renderer

    renderHeader?: (title: string, defaultContent: ReactNode) => ReactNode

    Custom header renderer