diff --git a/site/src/components/Loader/Loader.tsx b/site/src/components/Loader/Loader.tsx index ef590aecfb..f46bf7a38c 100644 --- a/site/src/components/Loader/Loader.tsx +++ b/site/src/components/Loader/Loader.tsx @@ -1,6 +1,6 @@ -import type { Interpolation, Theme } from "@emotion/react"; import { Spinner } from "components/Spinner/Spinner"; import type { FC, HTMLAttributes } from "react"; +import { cn } from "utils/cn"; interface LoaderProps extends HTMLAttributes { fullscreen?: boolean; @@ -15,36 +15,20 @@ export const Loader: FC = ({ fullscreen, size = "lg", label = "Loading...", + className, ...attrs }) => { return (
); }; - -const styles = { - inline: { - padding: 32, - width: "100%", - display: "flex", - alignItems: "center", - justifyContent: "center", - }, - fullscreen: (theme) => ({ - position: "absolute", - top: "0", - left: "0", - right: "0", - bottom: "0", - display: "flex", - justifyContent: "center", - alignItems: "center", - background: theme.palette.background.default, - }), -} satisfies Record>;