[error component][xs]: move it to top level dir so we can easily use it for other components.
This commit is contained in:
15
components/Error.tsx
Normal file
15
components/Error.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user