added admin layout

This commit is contained in:
2024-04-27 00:40:27 +03:00
parent f17a002ac6
commit db66161d81
15 changed files with 566 additions and 36 deletions

View File

@@ -0,0 +1,21 @@
'use client'
import { logout } from '@/actions/logout'
interface LogoutButtonProps {
children?: React.ReactNode
}
const LogoutButton = ({ children }: LogoutButtonProps) => {
const onClick = () => logout()
return (
<span onClick={onClick} className="cursor-pointer">
{children}
</span>
)
}
export default LogoutButton