Frontend security / security (push) Successful in 9s
Frontend verify / verify (push) Successful in 5m10s
Conventional commits / commits (pull_request) Successful in 25s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 5m10s
19 lines
401 B
TypeScript
19 lines
401 B
TypeScript
import { Stack } from "@mantine/core";
|
|
import type { FC, PropsWithChildren } from "react";
|
|
|
|
type LoadingSkeletonProps = PropsWithChildren<{
|
|
label: string;
|
|
}>;
|
|
|
|
const LoadingSkeleton: FC<LoadingSkeletonProps> = (props) => {
|
|
const { children, label } = props;
|
|
|
|
return (
|
|
<Stack aria-busy="true" aria-label={label} gap="md" role="status">
|
|
{children}
|
|
</Stack>
|
|
);
|
|
};
|
|
|
|
export { LoadingSkeleton };
|