[error component][xs]: move it to top level dir so we can easily use it for other components.

This commit is contained in:
anuveyatsu
2020-06-19 18:11:34 +06:00
parent 5f84d7f5b7
commit 8b8adccc74
2 changed files with 2 additions and 2 deletions

15
components/Error.tsx Normal file
View File

@@ -0,0 +1,15 @@
export default function ErrorMessage({ message }) {
return (
<aside>
{message}
<style jsx>{`
aside {
padding: 1.5em;
font-size: 14px;
color: white;
background-color: red;
}
`}</style>
</aside>
);
}