chore: add all the code from original repo
This commit is contained in:
14
app/components/UI/CreateButton.tsx
Normal file
14
app/components/UI/CreateButton.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
'use client';
|
||||
|
||||
import { Button } from '@mui/material';
|
||||
import { useFormStatus } from 'react-dom';
|
||||
|
||||
export const CreateButton = () => {
|
||||
const { pending } = useFormStatus();
|
||||
|
||||
return (
|
||||
<Button variant="outlined" color="primary" type="submit">
|
||||
{pending ? 'Please wait...' : 'Submit'}
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user