* Require "Theme" to be passed to "SxProps" Decreases typescript performance otherwise * Disallow "top" and "third-level" MUI imports * Exclude "node_modules" in tsconfig
15 lines
527 B
TypeScript
15 lines
527 B
TypeScript
/*
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
import { Link } from 'react-router-dom';
|
|
import ListItemButton, { ListItemButtonProps } from '@mui/material/ListItemButton';
|
|
|
|
export function ListItemLink(props: ListItemButtonProps<typeof Link>) {
|
|
return <ListItemButton component={Link} {...props} />;
|
|
}
|