remove unnecessary files and rename custom button

This commit is contained in:
luisa.bellitto 2025-06-23 21:13:32 +02:00 committed by Rudi Regentonne
parent 373019dde1
commit a598604cdb
10 changed files with 95 additions and 18299 deletions

View file

@ -0,0 +1,32 @@
import "./buttonRotkehlchen.css";
interface ButtonPrimaryProps {
style: "primary" | "secondary";
label: string;
onClick?: () => void;
}
export default function ButtonPrimary({ style, label, onClick }: ButtonPrimaryProps) {
return (
<>
{style === "primary" && (
<button
type="submit"
className="button-primary body-m"
onClick={onClick}
>
{label}
</button>
)}
{style === "secondary" && (
<button
type="button"
className="button-secondary body-m"
onClick={onClick}
>
{label}
</button>
)}
</>
);
}