You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dataset-configuration-container.tsx 515B

1234567891011121314151617181920212223242526
  1. import { cn } from '@/lib/utils';
  2. import { PropsWithChildren } from 'react';
  3. type DatasetConfigurationContainerProps = {
  4. className?: string;
  5. show?: boolean;
  6. } & PropsWithChildren;
  7. export function DatasetConfigurationContainer({
  8. children,
  9. className,
  10. show = true,
  11. }: DatasetConfigurationContainerProps) {
  12. return show ? (
  13. <div
  14. className={cn(
  15. 'border p-2 rounded-lg bg-slate-50 dark:bg-gray-600',
  16. className,
  17. )}
  18. >
  19. {children}
  20. </div>
  21. ) : (
  22. children
  23. );
  24. }