chore: typing for sidepeek components

This commit is contained in:
Chuma McPhoy
2024-07-12 14:36:13 +02:00
parent f78e74d3e3
commit f43de03d7a
3 changed files with 13 additions and 11 deletions

View File

@@ -5,15 +5,14 @@ import { Dialog, DialogTrigger, Modal } from "react-aria-components"
import styles from "./sidePeek.module.css"
type SidePeekProps = {
activeContent: string | null
onClose: (isOpen: boolean) => void
}
export default function SidePeek({
children,
onClose,
activeContent,
}: PropsWithChildren<SidePeekProps>) {
}: PropsWithChildren<{
onClose: (isOpen: boolean) => void
activeContent: string | null
}>) {
return (
<DialogTrigger>
<Modal