mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-18 20:49:28 +00:00
refactor: export and use components props
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { TextField } from "@mui/material";
|
||||
import { ComponentPropsWithoutRef, memo } from "react";
|
||||
import { TextField, TextFieldProps } from "@mui/material";
|
||||
import { memo } from "react";
|
||||
|
||||
type Props = ComponentPropsWithoutRef<typeof TextField>;
|
||||
export type Props = TextFieldProps;
|
||||
|
||||
const StyledComponent = (props: Props) => (
|
||||
<TextField
|
||||
|
||||
Reference in New Issue
Block a user