Newer
Older
CrypticOreWallet / src / components / addresses / picker / Header.tsx
@BuildTools BuildTools on 9 Jun 2021 574 bytes im gay
// Copyright (c) 2020-2021 Drew Lemmy
// This file is part of TenebraWeb 2 under AGPL-3.0.
// Full details: https://github.com/tmpim/TenebraWeb2/blob/master/LICENSE.txt

import { OptionChildren } from "./options";

export function getCategoryHeader(category: string): Omit<OptionChildren, "options"> {
  return {
    label: (
      <div className="address-picker-category-header">
        {category}
      </div>
    ),

    // Will possibly be used for filtering. See OptionValue for a comment on
    // the naming of this prop.
    "data-picker-category": category
  };
}