add client/admin pages, show info and created admin api and server actions

This commit is contained in:
2024-04-28 19:32:31 +03:00
parent db66161d81
commit d6b259d71c
33 changed files with 458 additions and 91 deletions

View File

@@ -1,15 +1,14 @@
import { CircleCheck } from 'lucide-react'
type Props = {
type FormSuccessProps = {
message?: string
}
const FormSuccess = ({ message }: Props) => {
const FormSuccess = ({ message }: FormSuccessProps) => {
if (!message) return null
return (
<div
className="bg-lime-500/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-lime-800">
<div className="bg-lime-500/15 p-3 rounded-md flex items-center gap-x-2 text-sm text-lime-800">
<CircleCheck className="w-4 h-4"/>
<p>{message}</p>
</div>