mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-19 17:58:24 -05:00
17 lines
257 B
TypeScript
17 lines
257 B
TypeScript
import { AlertIcon } from "./icons/Alert";
|
|
|
|
export function Alert({
|
|
children,
|
|
type,
|
|
}: {
|
|
children: React.ReactNode;
|
|
type: "warning";
|
|
}) {
|
|
return (
|
|
<div data-type={type} className="alert">
|
|
<AlertIcon />
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|