@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
3 lines (2 loc) • 347 B
JavaScript
"use client";
import{jsx as r}from"react/jsx-runtime";import{useMemo as e}from"react";import{CommentThreadComponent as t}from"./CommentThread.component.js";import{sortComments as o}from"../utils/index.js";const m=m=>{const{replies:i,...n}=m,s=e((()=>o(i,"date","ascending")),[i]);return r(t,{...n,replies:s})};export{m as CommentThreadContainer};