feat: add snapshot memory and blocked create button

This commit is contained in:
2026-04-09 18:50:40 +03:00
parent 4b02c6e9d3
commit 8d1de769c5
5 changed files with 210 additions and 40 deletions

View File

@@ -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>