add client/admin pages, show info and created admin api and server actions
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { TriangleAlert } from 'lucide-react'
|
||||
|
||||
type Props = {
|
||||
type FormErrorProps = {
|
||||
message?: string
|
||||
}
|
||||
|
||||
const FormError = ({ message }: Props) => {
|
||||
const FormError = ({ message }: FormErrorProps) => {
|
||||
if (!message) return null
|
||||
|
||||
return (
|
||||
<div
|
||||
className="bg-destructive/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-destructive">
|
||||
<div className="bg-destructive/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-destructive">
|
||||
<TriangleAlert className="w-4 h-4"/>
|
||||
<p>{message}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user