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 } from '@/utils' import ModalShare from './ModalShare' import { useModalState } from '@/Hooks' export default function FormDocument(props) { const { doc, doc_url }= props const shareModal = useModalState(false) const handleShare = (doc) => { shareModal.setData(doc) shareModal.toggle() } return (

Dokumen

{doc.reminders.map((reminder, index) => (
{reminder.date}
))}
Edit
handleShare(doc)}> Share
Kembali
) }