Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223
  1. import React, { ReactNode } from 'react';
  2. import SectionLoader from '../Loader/SectionLoader';
  3. interface AuthCardProps {
  4. children: ReactNode;
  5. title?: string;
  6. subtitle?: string;
  7. isLoading?: boolean;
  8. }
  9. const AuthCard: React.FC<AuthCardProps> = ({ children, title, subtitle, isLoading }) => {
  10. return (
  11. <div className="c-auth-card">
  12. <SectionLoader isLoading={isLoading ? isLoading : false}>
  13. <h1 className="c-auth-card__title">{title}</h1>
  14. <h2 className="c-auth-card__subtitle">{subtitle}</h2>
  15. {children}
  16. </SectionLoader>
  17. </div>
  18. );
  19. };
  20. export default AuthCard;