sendou.ink/app/components/Alert.tsx
Kalle (Sendou) 687da723fd Update tests
2021-12-04 15:22:33 +02:00

15 lines
300 B
TypeScript

import { AlertIcon } from "./icons/Alert";
export function Alert(props: {
children: React.ReactNode;
type: "warning";
"data-cy"?: string;
}) {
return (
<div data-type={props.type} className="alert" data-cy={props["data-cy"]}>
<AlertIcon />
{props.children}
</div>
);
}