vorteil/direktiv

View on GitHub
ui/src/components/Logs/LogSegment.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { FC, PropsWithChildren } from "react";

import { twMergeClsx } from "~/util/helpers";

type LogSegmentProps = PropsWithChildren & {
  className?: string;
  display: boolean;
};

export const LogSegment: FC<LogSegmentProps> = ({
  display,
  className,
  children,
}) => {
  if (!display) return <></>;
  return <span className={twMergeClsx("mr-3", className)}>{children}</span>;
};