{flags && flags.length > 0 ? (
{flags.map((flag) => (
))}
) : null}
{note.title}
{!hidePreview && !note.hidePreview && !note.protected ? (
{note.preview_html ? (
) : null}
{!note.preview_html && note.preview_plain ? (
{note.preview_plain}
) : null}
{!note.preview_html && !note.preview_plain ? (
{note.text}
) : null}
) : null}
{!hideDate || note.protected ? (
{note.protected ? (
Protected {hideDate ? '' : ' • '}
) : null}
{!hideDate && showModifiedDate ? (
Modified {note.updatedAtString || 'Now'}
) : null}
{!hideDate && !showModifiedDate ? (
{note.createdAtString || 'Now'}
) : null}
) : null}
{!hideTags && (
)}
);
};