From 560804dc8687f31ba0fc9d48f1c00c70ecf1fb1a Mon Sep 17 00:00:00 2001 From: Alexander Sharkov <143603362+asharkov-briklabs@users.noreply.github.com> Date: Tue, 4 Mar 2025 11:36:40 +0200 Subject: [PATCH] Add public-samples/refunds-wyx7mz/src/web/src/pages/common/index.ts --- src/web/src/pages/common/index.ts | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/web/src/pages/common/index.ts diff --git a/src/web/src/pages/common/index.ts b/src/web/src/pages/common/index.ts new file mode 100644 index 0000000..133040f --- /dev/null +++ b/src/web/src/pages/common/index.ts @@ -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} + */ +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 }; \ No newline at end of file