diff --git a/pkgs/frontend/app/components/CommonDialog.tsx b/pkgs/frontend/app/components/CommonDialog.tsx new file mode 100644 index 0000000..b1d2730 --- /dev/null +++ b/pkgs/frontend/app/components/CommonDialog.tsx @@ -0,0 +1,22 @@ +import { + DialogContent, + DialogRoot, + DialogTrigger, +} from "~/components/ui/dialog"; + +interface CommonDialogProps { + dialogTriggerReactNode?: React.ReactNode; + children?: React.ReactNode; +} + +export const CommonDialog = ({ + dialogTriggerReactNode, + children, +}: CommonDialogProps) => { + return ( + + {dialogTriggerReactNode} + {children} + + ); +}; diff --git a/pkgs/frontend/app/components/CommonInput.tsx b/pkgs/frontend/app/components/CommonInput.tsx new file mode 100644 index 0000000..df992c5 --- /dev/null +++ b/pkgs/frontend/app/components/CommonInput.tsx @@ -0,0 +1,10 @@ +import { Input, InputProps } from "@chakra-ui/react"; + +interface CommonInputProps extends Omit { + value: string | number; + onChange: (event: React.ChangeEvent) => void; +} + +export const CommonInput = ({ value, onChange }: CommonInputProps) => { + return ; +}; diff --git a/pkgs/frontend/app/components/CommonTextarea.tsx b/pkgs/frontend/app/components/CommonTextarea.tsx new file mode 100644 index 0000000..5704cad --- /dev/null +++ b/pkgs/frontend/app/components/CommonTextarea.tsx @@ -0,0 +1,10 @@ +import { Textarea, TextareaProps } from "@chakra-ui/react"; + +interface CommonTextAreaProps extends Omit { + value: string; + onChange: (event: React.ChangeEvent) => void; +} + +export const CommonTextArea = ({ value, onChange }: CommonTextAreaProps) => { + return