import { useModuleEditorContext } from "@/app/module-editor/[moduleId]/contexts/ModuleEditorContext";
import InlineButton from "@/components/ui/InlineButton/InlineButton";

const CreateAttributeButton = () => {
    const {
        attributeActions: { onCreate },
    } = useModuleEditorContext();

    return (
        <InlineButton
            onClick={onCreate}
            w={"100%"}>
            Создать атрибут
        </InlineButton>
    );
};

export default CreateAttributeButton;
