Files
plane/apps/admin/core/components/common/code-block.tsx
T
sriram veeraghantaandGitHub 0bc50c18db chore: update copyright ts and tsx files (#5355)
* chore: adding copyright to all files in web app

* chore: update copyright in admin app

* chore: copyright comments updated on space app

* fix: formatting in files
2026-01-07 20:00:10 +05:30

37 lines
971 B
TypeScript

/**
* SPDX-FileCopyrightText: 2023-present Plane Software, Inc.
* SPDX-License-Identifier: LicenseRef-Plane-Commercial
*
* Licensed under the Plane Commercial License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://plane.so/legals/eula
*
* DO NOT remove or modify this notice.
* NOTICE: Proprietary and confidential. Unauthorized use or distribution is prohibited.
*/
import { cn } from "@plane/utils";
type TProps = {
children: React.ReactNode;
className?: string;
darkerShade?: boolean;
};
export function CodeBlock({ children, className, darkerShade }: TProps) {
return (
<span
className={cn(
"px-0.5 text-11 text-tertiary bg-surface-2 font-semibold rounded-md border border-subtle",
{
"text-secondary bg-layer-1 border-subtle": darkerShade,
},
className
)}
>
{children}
</span>
);
}