Initial commit

This commit is contained in:
kevisual
2024-09-17 13:34:22 +08:00
commit 596c50cd0b
21 changed files with 4064 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
type LoadingProps = {
loading?: boolean;
children?: React.ReactNode;
};
export const Loading = (props: LoadingProps) => {
if (!props.loading) return <>{props.children}</>;
return (
<div className='w-full h-full flex justify-center items-center'>
<div className='w-20 h-20 border-t-8 border-b-8 rounded-full animate-spin'></div>
</div>
);
};