mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-28 19:40:28 +00:00
Moved tabler compoments into this project for more control
This commit is contained in:
17
frontend/src/components/Loader/Loader.tsx
Normal file
17
frontend/src/components/Loader/Loader.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React, { ReactNode } from "react";
|
||||
|
||||
import cn from "classnames";
|
||||
|
||||
export interface LoaderProps {
|
||||
/**
|
||||
* Child elements within
|
||||
*/
|
||||
children?: ReactNode;
|
||||
/**
|
||||
* Additional Class
|
||||
*/
|
||||
className?: string;
|
||||
}
|
||||
export const Loader: React.FC<LoaderProps> = ({ children, className }) => {
|
||||
return <div className={cn({ loader: true }, className)}>{children}</div>;
|
||||
};
|
1
frontend/src/components/Loader/index.ts
Normal file
1
frontend/src/components/Loader/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./Loader";
|
Reference in New Issue
Block a user