feat: add snapshot memory and blocked create button
This commit is contained in:
@@ -5,9 +5,10 @@ import { useNavigate } from "react-router-dom";
|
||||
interface CreateButtonProps {
|
||||
label: string;
|
||||
path: string;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export const CreateButton = ({ label, path }: CreateButtonProps) => {
|
||||
export const CreateButton = ({ label, path, disabled }: CreateButtonProps) => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return (
|
||||
@@ -18,6 +19,7 @@ export const CreateButton = ({ label, path }: CreateButtonProps) => {
|
||||
navigate(path);
|
||||
}}
|
||||
startIcon={<Plus size={20} />}
|
||||
disabled={disabled}
|
||||
>
|
||||
{label}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user