Skip to content

Commit

Permalink
Add public-samples/refunds-wyx7mz/src/web/src/pages/common/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
asharkov-briklabs committed Mar 4, 2025
1 parent 101ccb5 commit 560804d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions src/web/src/pages/common/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Import the ErrorPage component and its types for error states
import ErrorPage, { ErrorPageProps, ErrorCategory } from './ErrorPage';
// Import the LoginPage component for authentication
import LoginPage from './LoginPage';
// Import the NotFoundPage component for 404 pages
import NotFoundPage from './NotFoundPage';
// Import the UnauthorizedPage component for permission denied pages
import UnauthorizedPage from './UnauthorizedPage';

/**
* @file Exports the common page components used across both Pike (merchant) and Barracuda (admin) interfaces,
* including error pages, authentication pages, and other shared UI components.
*/

/**
* @description Exports the ErrorPage component for displaying system errors
* @exports ErrorPage
* @type {React.FC<ErrorPageProps>}
*/
export { ErrorPage };

/**
* @description Exports the ErrorPageProps interface for the ErrorPage component
* @exports ErrorPageProps
* @type {interface}
*/
export type { ErrorPageProps };

/**
* @description Exports the ErrorCategory enum for categorizing types of errors
* @exports ErrorCategory
* @type {enum}
*/
export { ErrorCategory };

/**
* @description Exports the LoginPage component for user authentication
* @exports LoginPage
* @type {React.FC}
*/
export { LoginPage };

/**
* @description Exports the NotFoundPage component for 404 Not Found pages
* @exports NotFoundPage
* @type {React.FC}
*/
export { NotFoundPage };

/**
* @description Exports the UnauthorizedPage component for 403 Unauthorized pages
* @exports UnauthorizedPage
* @type {React.FC}
*/
export { UnauthorizedPage };

0 comments on commit 560804d

Please sign in to comment.