Attempt for project to document itself, and moving to live version of nextreg.txt
This commit is contained in:
@@ -9,6 +9,11 @@ interface RegisterBrowserProps {
|
||||
registers: Register[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the access details for a register, including its description, operations, and notes.
|
||||
* @param access The register access data to render.
|
||||
* @returns A React component that displays the register access details.
|
||||
*/
|
||||
export function renderAccess(access: RegisterAccess) {
|
||||
const renderTooltip = (notes: Note[]) => (
|
||||
<Tooltip id="tooltip">
|
||||
@@ -56,6 +61,11 @@ export function renderAccess(access: RegisterAccess) {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A component for browsing and searching through a list of registers.
|
||||
* @param registers An array of Register objects to display.
|
||||
* @returns A React component that allows users to browse and search registers.
|
||||
*/
|
||||
export default function RegisterBrowser({ registers }: RegisterBrowserProps) {
|
||||
const [searchTerm, setSearchTerm] = useState('');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user