js->ts
This commit is contained in:
parent
dc11814695
commit
18ca92cec4
3 changed files with 44 additions and 10 deletions
|
|
@ -17,9 +17,23 @@ limitations under the License.
|
|||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import classNames from "classnames";
|
||||
import { variantToClassName, sizeToClassName } from "./Button";
|
||||
|
||||
export function LinkButton({ className, variant, size, children, ...rest }) {
|
||||
import { variantToClassName, sizeToClassName } from "./Button";
|
||||
interface Props {
|
||||
className: string;
|
||||
variant: string;
|
||||
size: number;
|
||||
children: JSX.Element;
|
||||
[index: string]: unknown;
|
||||
}
|
||||
|
||||
export function LinkButton({
|
||||
className,
|
||||
variant,
|
||||
size,
|
||||
children,
|
||||
...rest
|
||||
}: Props) {
|
||||
return (
|
||||
<Link
|
||||
className={classNames(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue