Skip to content

Commit 750a0e3

Browse files
committed
feat: add InfoPanel component for displaying informational messages
1 parent 22576af commit 750a0e3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/components/InfoPanel.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Info } from 'lucide-react'
2+
3+
interface Props {
4+
text: string
5+
}
6+
7+
function InfoPanel(props: Props) {
8+
return (
9+
<div className="bg-muted p-4 rounded-lg">
10+
<div className="flex items-start space-x-2">
11+
<Info className="w-5 h-5 mt-0.5 flex-shrink-0" />
12+
<p className="text-sm">{props.text}</p>
13+
</div>
14+
</div>
15+
)
16+
}
17+
18+
export default InfoPanel

0 commit comments

Comments
 (0)