16 lines
287 B
TypeScript
16 lines
287 B
TypeScript
import { AuthContext } from "@/providers/providers";
|
|
import { ReactNode, useContext } from "react"
|
|
|
|
type Props = {
|
|
children:ReactNode;
|
|
}
|
|
|
|
|
|
|
|
export default function AdminOnlyComponent(p:Props){
|
|
const context = useContext(AuthContext)
|
|
return
|
|
(<div>
|
|
|
|
</div>);
|
|
} |