mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 06:58:10 -05:00
11 lines
242 B
TypeScript
11 lines
242 B
TypeScript
import { Show } from "solid-js";
|
|
import s from "../styles/ErrorMessage.module.css";
|
|
|
|
export function ErrorMessage(p: { error?: string }) {
|
|
return (
|
|
<Show when={p.error}>
|
|
<div class={s.container}>{p.error}</div>
|
|
</Show>
|
|
);
|
|
}
|