diff --git a/src/components/Alert.jsx b/src/components/Alert.jsx new file mode 100644 index 0000000..153b83c --- /dev/null +++ b/src/components/Alert.jsx @@ -0,0 +1,13 @@ +import React from 'react'; + +export default function Alert({ type = 'info', children }) { + const base = 'p-2 mb-2 rounded'; + const types = { + success: 'bg-green-600 text-white', + error: 'bg-red-600 text-white', + info: 'bg-gray-200', + }; + return ( +
A carregar...