16 lines
466 B
TypeScript
16 lines
466 B
TypeScript
import { Link, usePage } from '@inertiajs/react';
|
|
|
|
export default function ContentManagementEntry() {
|
|
const { contentManagementHref } = usePage<{
|
|
contentManagementHref?: string | null;
|
|
}>().props;
|
|
return contentManagementHref ? (
|
|
<Link
|
|
className="inline-block rounded-lg border px-4 py-3 font-semibold underline"
|
|
href={contentManagementHref}
|
|
>
|
|
Área de trabalho
|
|
</Link>
|
|
) : null;
|
|
}
|