Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.1 KB
Raw Blame
'use client'

import type { TimePickerProps } from '@langgenius/dify-ui/time-picker'
import { TimePicker as BaseTimePicker } from '@langgenius/dify-ui/time-picker'
import { usePickerLabels } from './use-picker-labels'

export function TimePicker(props: TimePickerProps) {
  const defaults = usePickerLabels()
  return (
    <BaseTimePicker
      {...defaults}
      {...props}
      placeholder={props.placeholder ?? defaults.labels.title}
      locale={props.locale ?? defaults.locale}
      labels={{ ...defaults.labels, ...props.labels }}
    />
  )
}

/* oxlint-disable no-barrel-files/no-barrel-files -- Keep this localized picker and its unchanged parts/types in one component entry. */
export {
  TimePickerClear,
  TimePickerContent,
  TimePickerLabel,
  TimePickerTrigger,
  TimePickerValue,
} from '@langgenius/dify-ui/time-picker'
/** @public */
export type {
  TimePickerChangeEventDetails,
  TimePickerChangeEventReason,
  TimePickerClearProps,
  TimePickerContentProps,
  TimePickerLabelProps,
  TimePickerProps,
  TimePickerTriggerProps,
  TimePickerValueProps,
} from '@langgenius/dify-ui/time-picker'
/* oxlint-enable no-barrel-files/no-barrel-files */