xylabs/sdk-react

View on GitHub
packages/shared/src/Collapsible/State.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Dispatch, SetStateAction } from 'react'

import type { ContextExState } from '../contextEx/index.ts'

export interface CollapsibleState extends ContextExState {
  collapse?: boolean
  collapseEnd?: boolean
  setCollapse?: Dispatch<SetStateAction<boolean>>
  setCollapseEnd?: Dispatch<SetStateAction<boolean>>
}