Finish bridge generalization

This commit is contained in:
Darren Clarke 2024-04-26 15:49:58 +02:00
parent cb7a3a08dc
commit cca8d03988
93 changed files with 634 additions and 2085 deletions

View file

@ -8,13 +8,13 @@ type ServiceLayoutProps = {
};
};
export const ServiceLayout = ({
export default function ServiceLayout({
children,
detail,
edit,
create,
params: { segment },
}: ServiceLayoutProps) => {
}: ServiceLayoutProps) {
const length = segment?.length ?? 0;
const isCreate = length === 2 && segment[1] === "create";
const isEdit = length === 3 && segment[2] === "edit";
@ -29,4 +29,4 @@ export const ServiceLayout = ({
{isCreate && create}
</>
);
};
}