mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Optima page heading: add end deco
This commit is contained in:
@@ -8,11 +8,12 @@ export function OptimaAppPageHeading(props: {
|
||||
tagline?: React.ReactNode;
|
||||
accentedTagline?: boolean;
|
||||
startDecorator?: React.ReactNode;
|
||||
endDecorator?: React.ReactNode;
|
||||
noDivider?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<Box mb={2.25}>
|
||||
{!!props.title && <Typography level='h2' sx={{ textAlign: 'start' }} startDecorator={props.startDecorator}>
|
||||
{!!props.title && <Typography level='h2' sx={{ textAlign: 'start' }} startDecorator={props.startDecorator} endDecorator={props.endDecorator}>
|
||||
{props.title}
|
||||
</Typography>}
|
||||
{!!props.tagline && <Typography level='body-sm' sx={{ color: !props.accentedTagline ? undefined : 'text.secondary', textAlign: 'start', mt: 0.75 }}>
|
||||
|
||||
Reference in New Issue
Block a user