mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-05 15:27:20 +02:00
* feat: Integrate logger for MessageIcon component * feat: Enhance artifact sharing functionality with updated path checks and read-only state management * feat: Refactor Thinking and Reasoning components for improved structure and styling * feat: Enhance artifact sharing with context value management and responsive layout * feat: Enhance ShareView with theme and language management features * feat: Improve ThinkingButton accessibility and styling for better user interaction * feat: Introduce isArtifactRoute utility for route validation in Artifact components * feat: Add latest message text extraction in SharedView for improved message display * feat: Update locale handling in SharedView for dynamic date formatting * feat: Refactor ArtifactsContext and SharedView for improved context handling and styling adjustments * feat: Enhance artifact panel size management with local storage integration * chore: imports * refactor: move ShareArtifactsContainer out of ShareView --------- Co-authored-by: Danny Avila <danny@librechat.ai>
7 lines
310 B
TypeScript
7 lines
310 B
TypeScript
import { matchPath } from 'react-router-dom';
|
|
|
|
const matchesRouteStart = (pathname: string, pattern: string) =>
|
|
matchPath({ path: pattern, end: false }, pathname) != null;
|
|
|
|
export const isArtifactRoute = (pathname: string) =>
|
|
matchesRouteStart(pathname, '/c/*') || matchesRouteStart(pathname, '/share/*');
|