[Glitch] Collection share modal cleanup

Port 03b2f77ad2 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2026-03-02 18:48:31 +01:00
1 parent 26ce025df1
commit fe7dc293c4
7 files changed
+39 -35

No files matched your search

@@ -1,16 +1,14 @@
import classNames from 'classnames';
interface SimpleComponentProps {
interface ModalShellProps {
className?: string;
children?: React.ReactNode;
}
interface ModalShellComponent extends React.FC<SimpleComponentProps> {
Body: React.FC<SimpleComponentProps>;
Actions: React.FC<SimpleComponentProps>;
}
export const ModalShell: ModalShellComponent = ({ children, className }) => {
export const ModalShell: React.FC<ModalShellProps> = ({
children,
className,
}) => {
return (
<div
className={classNames(
@@ -24,7 +22,7 @@ export const ModalShell: ModalShellComponent = ({ children, className }) => {
);
};
const ModalShellBody: ModalShellComponent['Body'] = ({
export const ModalShellBody: React.FC<ModalShellProps> = ({
children,
className,
}) => {
@@ -39,7 +37,7 @@ const ModalShellBody: ModalShellComponent['Body'] = ({
);
};
const ModalShellActions: ModalShellComponent['Actions'] = ({
export const ModalShellActions: React.FC<ModalShellProps> = ({
children,
className,
}) => {
@@ -51,6 +49,3 @@ const ModalShellActions: ModalShellComponent['Actions'] = ({
</div>
);
};
ModalShell.Body = ModalShellBody;
ModalShell.Actions = ModalShellActions;