30 |
31 | {this.props.title}
32 | {this.props.description}
33 |
34 |
{this.props.children}
35 |
36 | );
37 | }
38 | }
39 |
40 | export default Panel;
41 |
--------------------------------------------------------------------------------
/ExampleProjects/MultiDAQ/XEM8320/software/FP-Platform/src/Panel.tsx:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2024-2025 Opal Kelly Incorporated
3 | *
4 | * This source code is licensed under the MIT license found in the
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 |
8 | import React, { Component } from "react";
9 |
10 | import classnames from "classnames";
11 |
12 | import "./Panel.css";
13 |
14 | /**
15 | * Properties for the Panel component.
16 | */
17 | interface PanelProps extends React.PropsWithChildren