{item.title}
+ + ))} ++ {title} +
+ ); +}; diff --git a/frontend/src/components/common/Paragraph.tsx b/frontend/src/components/common/Paragraph.tsx new file mode 100644 index 0000000..5105306 --- /dev/null +++ b/frontend/src/components/common/Paragraph.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +interface Props { + paragraph: string; + className?: string; + style?: React.CSSProperties; +} + +export const Paragraph = ({ paragraph, className, style }: Props) => { + return ( ++ {paragraph} +
+ ); +}; diff --git a/frontend/src/components/common/PrimaryButton.tsx b/frontend/src/components/common/PrimaryButton.tsx new file mode 100644 index 0000000..a4b32dc --- /dev/null +++ b/frontend/src/components/common/PrimaryButton.tsx @@ -0,0 +1,32 @@ +'use client'; +import React from 'react'; + +interface Props { + label: string; + onClick: (e: React.MouseEvent) => void; + icon?: React.ReactNode; + style?: React.CSSProperties; + className?: string; + disabled?: boolean; +} + +export const PrimaryButton = ({ + label, + onClick, + icon, + style, + className, + disabled, +}: Props) => { + return ( + + ); +}; diff --git a/frontend/src/components/common/SecondaryButton.tsx b/frontend/src/components/common/SecondaryButton.tsx new file mode 100644 index 0000000..e00b20d --- /dev/null +++ b/frontend/src/components/common/SecondaryButton.tsx @@ -0,0 +1,28 @@ +import React from 'react'; + +interface Props { + label: string; + onClick: (e: React.MouseEvent) => void; + icon?: React.ReactNode; + style?: React.CSSProperties; + className?: string; +} + +export const SecondaryButton = ({ + label, + onClick, + icon, + style, + className, +}: Props) => { + return ( + + ); +}; diff --git a/frontend/src/components/common/Title.tsx b/frontend/src/components/common/Title.tsx new file mode 100644 index 0000000..01bb537 --- /dev/null +++ b/frontend/src/components/common/Title.tsx @@ -0,0 +1,15 @@ +import React from 'react'; + +interface Props { + title: string; + className?: string; + style?: React.CSSProperties; +} + +export const Title = ({ title, className, style }: Props) => { + return ( ++ {isUploading && + !isError && + !isCompleted && + 'Your File is under processing please wait.'} + {isCompleted && + !isUploading && + 'Your file has been successfully uploaded and converted.'} + {isError && error} +
+