@@ -11,19 +11,19 @@ import {
1111
1212import { useMediaQuery } from "@axiscommunications/fluent-hooks" ;
1313
14+ import { Illustration } from "./constants.js" ;
1415import { useContainerStyle , useStyles } from "./styles.js" ;
1516import {
1617 ContentProps ,
1718 EmptyViewProps ,
1819 HtmlDivAttributesRestProps ,
1920} from "./types.js" ;
20- import { Illustration } from "./constants.js" ;
2121
22- function ContainerSpacious (
23- { children, className , ... rest } : PropsWithChildren <
24- HtmlDivAttributesRestProps
25- >
26- ) {
22+ function ContainerSpacious ( {
23+ children,
24+ className ,
25+ ... rest
26+ } : PropsWithChildren < HtmlDivAttributesRestProps > ) {
2727 const styles = useStyles ( ) ;
2828 const containerStyle = useContainerStyle ( { className } ) ;
2929
@@ -37,11 +37,11 @@ function ContainerSpacious(
3737 ) ;
3838}
3939
40- function ContainerCompact (
41- { children, className , ... rest } : PropsWithChildren <
42- HtmlDivAttributesRestProps
43- >
44- ) {
40+ function ContainerCompact ( {
41+ children,
42+ className ,
43+ ... rest
44+ } : PropsWithChildren < HtmlDivAttributesRestProps > ) {
4545 const styles = useStyles ( ) ;
4646 const containerStyle = useContainerStyle ( { className } ) ;
4747
@@ -54,11 +54,11 @@ function ContainerCompact(
5454 ) ;
5555}
5656
57- function ContainerTop (
58- { children, className , ... rest } : PropsWithChildren <
59- HtmlDivAttributesRestProps
60- >
61- ) {
57+ function ContainerTop ( {
58+ children,
59+ className ,
60+ ... rest
61+ } : PropsWithChildren < HtmlDivAttributesRestProps > ) {
6262 const styles = useStyles ( ) ;
6363 const containerStyle = useContainerStyle ( { className } ) ;
6464
@@ -106,9 +106,10 @@ function ContentSmall({ body, illustration, title }: ContentProps) {
106106 ) ;
107107}
108108
109- function ContentExtraSmall (
110- { title, body } : Omit < ContentProps , "illustration" >
111- ) {
109+ function ContentExtraSmall ( {
110+ title,
111+ body,
112+ } : Omit < ContentProps , "illustration" > ) {
112113 const screenStyles = useStyles ( ) ;
113114 return (
114115 < >
@@ -118,36 +119,42 @@ function ContentExtraSmall(
118119 ) ;
119120}
120121
121- export function MainEmptyView (
122- { after, illustration, title, children, ...rest } : EmptyViewProps
123- ) {
122+ export function MainEmptyView ( {
123+ after,
124+ illustration,
125+ title,
126+ children,
127+ ...rest
128+ } : EmptyViewProps ) {
124129 const screenStyles = useStyles ( ) ;
125130 const media = useMediaQuery ( ) ;
126131 return (
127132 < ContainerSpacious { ...rest } >
128- { media === "small"
129- ? (
130- < ContentMedium
131- illustration = { illustration }
132- title = { title }
133- body = { children }
134- />
135- )
136- : (
137- < ContentLarge
138- illustration = { illustration }
139- title = { title }
140- body = { children }
141- />
142- ) }
133+ { media === "small" ? (
134+ < ContentMedium
135+ illustration = { illustration }
136+ title = { title }
137+ body = { children }
138+ />
139+ ) : (
140+ < ContentLarge
141+ illustration = { illustration }
142+ title = { title }
143+ body = { children }
144+ />
145+ ) }
143146 < div className = { screenStyles . after } > { after } </ div >
144147 </ ContainerSpacious >
145148 ) ;
146149}
147150
148- export function PanelEmptyView (
149- { after, illustration, title, children, ...rest } : EmptyViewProps
150- ) {
151+ export function PanelEmptyView ( {
152+ after,
153+ illustration,
154+ title,
155+ children,
156+ ...rest
157+ } : EmptyViewProps ) {
151158 const screenStyles = useStyles ( ) ;
152159 return (
153160 < ContainerTop { ...rest } >
@@ -161,9 +168,12 @@ export function PanelEmptyView(
161168 ) ;
162169}
163170
164- export function SubmenuEmptyView (
165- { illustration, title, children, ...rest } : Omit < EmptyViewProps , "after" >
166- ) {
171+ export function SubmenuEmptyView ( {
172+ illustration,
173+ title,
174+ children,
175+ ...rest
176+ } : Omit < EmptyViewProps , "after" > ) {
167177 return (
168178 < ContainerTop { ...rest } >
169179 < ContentSmall illustration = { illustration } title = { title } body = { children } />
@@ -184,9 +194,12 @@ export function SubmenuEmptyView(
184194 * </DialogContent>
185195 * ```
186196 */
187- export function DialogEmptyView (
188- { after, title, children, ...rest } : Omit < EmptyViewProps , "illustration" >
189- ) {
197+ export function DialogEmptyView ( {
198+ after,
199+ title,
200+ children,
201+ ...rest
202+ } : Omit < EmptyViewProps , "illustration" > ) {
190203 const screenStyles = useStyles ( ) ;
191204 return (
192205 < ContainerCompact { ...rest } >
0 commit comments