analytica-frontend-lib
Version:
Repositório público dos componentes utilizados nas plataformas da Analytica Ensino
42 lines • 1.61 kB
TypeScript
/**
* Props interface for the RestrictedAccess component
*
* @interface RestrictedAccessProps
* @property {string} [title] - Custom title text (default: "Área Restrita")
* @property {string} [description] - Custom description text
* @property {string} [buttonText] - Custom button text (default: "Fazer Login")
* @property {string} [logoSrc] - Logo image source URL
* @property {string} [logoAlt] - Logo image alt text
* @property {string} [footerText] - Footer text to display
* @property {string} [className] - Additional CSS classes for the container
*/
export interface RestrictedAccessProps {
title?: string;
description?: string;
buttonText?: string;
logoSrc?: string;
logoAlt?: string;
footerText?: string;
className?: string;
}
/**
* RestrictedAccess component for displaying login/authentication required pages
*
* A reusable component for displaying restricted access pages with configurable
* content, logo, and login action. Clicking the login button redirects to the
* root domain using getRootDomain() (e.g., backoffice.example.com -> example.com).
*
* @param {RestrictedAccessProps} props - The component props
* @returns {JSX.Element} The RestrictedAccess component
*
* @example
* ```typescript
* <RestrictedAccess
* logoSrc="/logo.png"
* footerText="My Application"
* />
* ```
*/
declare const RestrictedAccess: ({ title, description, buttonText, logoSrc, logoAlt, footerText, className, }: RestrictedAccessProps) => import("react/jsx-runtime").JSX.Element;
export default RestrictedAccess;
//# sourceMappingURL=RestrictedAccess.d.ts.map