mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-05 20:56:13 -05:00
15 lines
300 B
TypeScript
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>
|
|
);
|
|
}
|