how to cancel sephiroth neutral b

} from ‘./_utils/use-prompt’
import { useRecentFiles } from ‘./_utils/use-recent-files’

export function RecentFiles(props: {
onOpenRecent: (filePath: string) => void
onClearRecent: () => void
}) {
const { onClearRecent, onOpenRecent } = props
const { recentFiles, setRecentFiles } = useRecentFiles()

function openRecentFile(filePath: string) {
onOpenRecent(filePath)
}

function clearRecentFiles() {
usePrompt({
title: ‘Clear Recent Files’,
message: ‘Do you want to clear the recent files list?’,
onConfirm: () => {
setRecentFiles([])
onClearRecent()
},
})
}

return (

{recentFiles.length ? (
<>

Recent Files

{recentFiles.map((recentFile) => (

openRecentFile(recentFile)}
>
{recentFile}

))}


) : (

No Recent Files

)}

)
}