'use client'

import { createSplitProps } from '../../utils/create-split-props.ts'
import type { UsePresenceProps } from './use-presence.ts'

export const splitPresenceProps = <T extends UsePresenceProps>(props: T) =>
  createSplitProps<UsePresenceProps>()(props, [
    'hideMode',
    'immediate',
    'lazyMount',
    'onExitComplete',
    'present',
    'skipAnimationOnMount',
    'unmountOnExit',
  ])
