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 };
|