go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/nodes/static/_nextjs/src/components/labelValue.tsx (about)

     1  /**
     2   * Copyright (c) 2024 - Present. Will Charczuk. All rights reserved.
     3   * Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     4   */
     5  import { ReactNode } from "react";
     6  
     7  export interface LabelValueProps {
     8    label: string;
     9    value: string | ReactNode;
    10  }
    11  
    12  export function LabelValue({ label, value }: LabelValueProps) {
    13    return (
    14      <div className="label-value-row">
    15        <div className="label-value-label">{label}</div>
    16        <div className="label-value-value">{value}</div>
    17      </div>
    18    )
    19  }