chore: type reorg
This commit is contained in:
@@ -3,10 +3,9 @@
|
||||
import { Children, PropsWithChildren } from "react"
|
||||
|
||||
import { CloseIcon } from "@/components/Icons"
|
||||
import { SidePeekContentProps } from "@/components/TempDesignSystem/SidePeek/types"
|
||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||
|
||||
import { SidePeekContentProps } from "./types"
|
||||
|
||||
import styles from "./content.module.css"
|
||||
|
||||
export default function Content({
|
||||
|
||||
@@ -3,16 +3,15 @@
|
||||
import { Children, cloneElement, PropsWithChildren } from "react"
|
||||
import { Dialog, DialogTrigger, Modal } from "react-aria-components"
|
||||
|
||||
import { SidePeekProps } from "./types"
|
||||
|
||||
import styles from "./sidePeek.module.css"
|
||||
|
||||
export default function SidePeek({
|
||||
children,
|
||||
onClose,
|
||||
activeContent,
|
||||
}: PropsWithChildren<{
|
||||
onClose: (isOpen: boolean) => void
|
||||
activeContent: string | null
|
||||
}>) {
|
||||
}: PropsWithChildren<SidePeekProps>) {
|
||||
return (
|
||||
<DialogTrigger>
|
||||
<Modal
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
export type SidePeekProps = {
|
||||
activeContent: string | null
|
||||
onClose: (isOpen: boolean) => void
|
||||
}
|
||||
|
||||
export type SidePeekContentProps = {
|
||||
title?: string
|
||||
contentKey: string
|
||||
Reference in New Issue
Block a user