mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 06:58:10 -05:00
17 lines
324 B
TypeScript
17 lines
324 B
TypeScript
import type * as React from "react";
|
|
import { AlertIcon } from "./icons/Alert";
|
|
|
|
export function Alert({
|
|
children,
|
|
textClassName,
|
|
}: {
|
|
children: React.ReactNode;
|
|
textClassName?: string;
|
|
}) {
|
|
return (
|
|
<div className="alert">
|
|
<AlertIcon /> <div className={textClassName}>{children}</div>
|
|
</div>
|
|
);
|
|
}
|