import React from 'react' import { Link, Head } from '@inertiajs/react' import DocStatusItem from './DocStatusItem' import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout' import InputLabel from '@/Components/InputLabel' import TextInput from '@/Components/TextInput' import { formatDate, hasPermission } from '@/utils' import { useModalState } from '@/Hooks' export default function FormDocument(props) { const { doc, doc_url }= props const canDownload = hasPermission('download-document', props.auth.user) return (

Dokumen

{canDownload && ( )}
Edit
Kembali
) }